<?xml version="1.0" encoding="UTF-8"?>
          <beans xmlns="http://www.springframework.org/schema/beans"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:aop="http://www.springframework.org/schema/aop"
          xmlns:tx="http://www.springframework.org/schema/tx"
          xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                     http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
                     http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd"
          default-autowire="byName">


          <!--客服端設(shè)置-->
          <bean id="paymentManager" class= "org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
               <property name="serviceUrl" value="http://localhost:8080/pay.service" />
               <property name="serviceInterface" value="cn.com.vikijob.service.PaymentService" />
            </bean>
            
            <!--服務(wù)端設(shè)置-->
          <bean id="httpPaymentService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter">
            <property name="service" ref="paymentService" />
            <property name="serviceInterface" value="cn.com.vikijob.service.PaymentService"/>
          </bean>
          <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
            <property name="mappings">
             <props>
              <prop key="/pay.service">httpPaymentService</prop>
             </props>
            </property>
          </bean>
          </beans>

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 贡嘎县| 滕州市| 三穗县| 太保市| 卓资县| 屏东市| 岳池县| 星子县| 水富县| 浙江省| 鹤山市| 会东县| 靖远县| 济阳县| 通江县| 威远县| 获嘉县| 淅川县| 通河县| 澄迈县| 邵阳市| 江西省| 全椒县| 玉树县| 长泰县| 康乐县| 梁山县| 阿瓦提县| 广元市| 南开区| 绥德县| 铜陵市| 康定县| 外汇| 长宁县| 小金县| 敦煌市| 黔西| 古浪县| 阳曲县| 樟树市|