Spring Remoting 的 Thrift 实现(Java)
mxw8
9年前
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>