Spring Remoting 的 Thrift 实现(Java)
Spring Remoting 的 Thrift 实现(Java)。
Usage
Server
<bean name="/api/appService" class="ome.srhang.libs.spring.remoting.thrift.ThriftServiceExporter"> <property name="serviceInterface" value="***"> </property> <property name="service"> <ref bean="***"/> </property> </bean>
Client
<bean id="thriftAppService" class="me.srhang.libs.spring.remoting.thrift.ThriftProxyFactoryBean"> <property name="serviceUrl"> <value>${api.url}</value> </property> <property name="serviceInterface" value="***"/> </bean>
本文由用户 mxw8 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!