一、服务端配置(Spring)
1.web.xml配置servlet
<servlet>
<servlet-name>remote</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<!-- 配置文件路径 -->
<param-value>classpath:spring/remote-servlet.xml</param-value>
</init-param>
<load-on-startup>5</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>remote</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
2.注入HttpInvokerProxyFactorybean—remote-servlet.xml
<!-- 需要,被客户端访问的service -->
<bean name="handleRemoteService" class="com.**.**.H