Spring注入另外服务器的接口

下面的例子注入另外一台机器的接口,用于联调测试
<bean name="bonusFacade" class="org.springframework.remoting.caucho.HessianProxyFactoryBean" lazy-init="true">
       <property name="serviceUrl">
                  <value>
                      <!-- 192.168.16.112:8080-->
   http://IP:端口/项目名/remote/interface/BonusFacade
                                 
                  </value>
       </property>
       <property name="serviceInterface">
       <!-- 接口路径 如:-->   
       <value>com.xxx.xxx.xxx.xxImpl</value>
       </property>
    </bean>

你可能感兴趣的:(spring)