<bean id="accountService" class="example.AccountServiceImpl" />
<bean name="/accountService" class="org.springframework.remoting.caucho.HessianServiceExporter">
<property name="service" ref="accountService"/>
<property name="serviceInterface" value="example.AccountService"/>
</bean>
<bean id="accountService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean">
<property name="serviceUrl" value="http://remotehost:8080/accountService"/>
<property name="serviceInterface" value="example.AccountService"/>
</bean>
QQ图片20180406155540.png (95.71 KB, 下载次数: 11)
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |