springBoot服务调用-rmi,httpinvoke,hession
完整代码下载链接:
https://github.com/2010yhh/springBoot-demos/tree/master/springboot-invoke
环境
idea2018,jdk1.8,
springboot版本:springboot1.5.9.RELEASE,
远程服务调用:测试3种rmi,httpinvoke,hession方式。
1.Rmi
服务端服务暴露配置:
<!--spring httpInvoker -->
<bean name="testServiceImpl" class="com.ctg.test.api.serviceimpl.TestServiceImpl"/>
<bean id="testService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
<property name="service">
<ref bean="testServiceImpl"/>