123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <?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 classpath:schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/tx classpath:schema/tx/spring-tx-2.5.xsd
- http://www.springframework.org/schema/aop classpath:schema/aop/spring-aop-2.5.xsd">
- <!-- Spring的xml配置中的属性变量加载 -->
- <bean id="propertyConfigurer"
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="locations">
- <list>
- <value>classpath:jdbc.properties</value>
- <value>classpath:minicore.properties</value>
- </list>
- </property>
- </bean>
- <!-- I18n的国际化管理部分 -->
- <bean id="messageSource" class="com.miniframe.core.ReloadMiniMessageSource">
- <property name="basenames">
- <list>
- <value>validator</value>
- <value>returncode</value>
- </list>
- </property>
- </bean>
-
- <!-- 验证工厂,加载验证配置项 -->
- <bean id="validatorFactory" class="com.miniframe.core.validator.MiniValidatorFactory">
- <property name="validationConfigLocations">
- <list>
- <value>classpath:validator-rules.xml</value>
- <value>classpath:validateform</value>
- </list>
- </property>
- </bean>
-
- <!-- 验证调用入口类 -->
- <bean id="beanValidator"
- class="org.springmodules.validation.commons.DefaultBeanValidator">
- <property name="validatorFactory" ref="validatorFactory" />
- </bean>
-
- <!-- 扫描系统交易的预处理加载注册,不欲加入不影响使用 -->
- <bean id="searchExecProcess" class="com.miniframe.core.SearchExecProcess"/>
-
- <!-- 客户端通讯服务类 同步通讯:com.miniframe.httpclient.HttpClient,
- 异步通讯:com.miniframe.httpclient.HttpAsyncClient
- 双向加密:com.miniframe.httpclient.HttpSslClient -->
-
- <!-- 同步通讯 -->
- <bean id="httpClient" class="com.miniframe.httpclient.HttpClient"/>
-
- <!-- 异步通讯 -->
- <bean id="httpAsyncClient" class="com.miniframe.httpclient.HttpAsyncClient"/>
-
- <!-- 双向加密 -->
- <bean id="httpSslClient" class="com.miniframe.httpclient.HttpSslClient">
- <!-- 服务器端证书 jks格式 -->
- <property name="jksStoreClassPath" value="server.jks"/>
- <!-- 服务器端证书密码 -->
- <property name="jksPassWord" value="123456"/>
-
- <!-- 客户端证书 p12格式 -->
- <property name="p12ClassPath" value="client.p12"/>
- <!-- 客户端证书密码 -->
- <property name="p12PassWord" value="123456"/>
- </bean>
-
- <!-- 路由前处理,为判断权限等拦截使用 -->
- <bean id="preHttpRouteProxy" class="com.miniframe.service.PreHttpRouteProxy"/>
-
- <!-- 交易前处理,预留接口例子 -->
- <bean id="preProcessFlow" class="com.miniframe.service.PreProcessFlow"/>
- <!-- 交易后处理,预留接口例子 -->
- <bean id="nextProcessFlow" class="com.miniframe.service.NextProcessFlow"/>
- <!-- 交易后处理,预留接口例子 -->
- <bean id="errorProcessFlow" class="com.miniframe.service.ErrorProcessFlow"/>
- <!-- 通讯异步路由代理 通讯同步机制: com.miniframe.httpproxy.HttpRouteProxy
- 通讯异步机制: com.miniframe.httpproxy.HttpAyncRouteProxy -->
-
- <bean id="httpRouteProxy" class="com.miniframe.httpproxy.HttpRouteProxy">
- <!-- 路由代理的前处理,需要拦截增加头信息等,返回非空为错误,必须包含错误的信息报文 -->
- <property name="preHttpRouteProxy" ref="preHttpRouteProxy" />
- <property name="uriMap">
- <map>
- <!-- entry key="/manager/TransServlet" value="http://127.0.0.1:9080/SafeServlet"/ -->
- <!--<entry key="/serviceineyes/TransServlet" value="http://127.0.0.1:8089/SafeServlet"/>-->
- <!--<entry key="/serviceineyes/TransServlet" value="http://192.168.219.183:23100/SafeServlet"/>-->
- <!--<entry key="/manager/ineyes/TransServlet" value="http://127.0.0.1:8089/SafeServlet"/>-->
- <entry key="/managersvr/manager/cae/TransServlet" value="http://192.168.0.140:32410/SafeServlet"/>
- <entry key="/managersvr/manager/gzl/TransServlet" value="http://192.168.0.140:32430/"/>
- <!--<entry key="/managersvr/manager/trademark/TransServlet" value="http://192.168.0.140:32410/SafeServlet"/>-->
- <!--<entry key="/managersvr/manager/pay/TransServlet" value="http://127.0.0.1:8081/SafeServlet"/>-->
- <!--<entry key="/managersvr/manager/browser/TransServlet" value="http://192.168.0.10:8082/notarybrowser/TransServlet"/>-->
- <!--<entry key="/managersvr/manager/gzl/TransServlet" value="http://192.168.0.140:32200/"/>-->
- <!--<entry key="/managersvr/manager/pay/TransServlet" value="http://192.168.0.140:32201/SafeServlet"/>-->
- <!--<entry key="/managersvr/manager/browser/TransServlet" value="http://192.168.0.140:32101/"/>-->
- <!--<entry key="/managersvr/manager/browser/TransServlet" value="http://192.168.0.140:32003/notarybrowser/TransServlet"/>-->
- </map>
- </property>
- </bean>
- <!-- Http服务器 -->
- <bean id="httpTransService" class="com.miniframe.httpserver.HttpTransService">
-
- <!-- 路由代理 -->
- <property name="httpRouteProxy" ref="httpRouteProxy" />
- <!-- 交易前处理 -->
- <property name="preProcessFlow" ref="preProcessFlow" />
- <!-- 交易后处理 -->
- <property name="nextProcessFlow" ref="nextProcessFlow" />
- <!-- 交易错误处理 -->
- <property name="errorProcessFlow" ref="errorProcessFlow" />
-
- <!-- 是否将交易码转化为URL -->
- <property name="code2uri" value="false"/>
- <!-- 客户端http头传送内容 -->
- <property name="clienthttpHead" value=""/>
- <!-- 服务器端http返回头传送内容 -->
- <property name="serverHttpHead" value=""/>
-
- <!-- 心跳错误检测码 -->
- <property name="hearterrorcode" value="${hearterrorcode}"/>
- <!-- 服务监听的IP -->
- <property name="host" value="${httpserver.host}"/>
- <!-- 服务监听的Port -->
- <property name="port" value="${httpserver.port}"/>
-
- <!-- 交易码的key -->
- <property name="transCode" value="transCode"/>
- <!-- 返回码key -->
- <property name="returnCode" value="returnCode"/>
- <!-- 返回信息key -->
- <property name="returnMsg" value="returnMsg"/>
- <!-- 缺省异常的返回码 -->
- <property name="exceptionReturnCode" value="${systemerror}"/>
- <!-- 缺省异常的返回信息 -->
- <property name="exceptionReturnMsg" value="系统交易调用失败!"/>
- <!-- 正常的返回码 -->
- <property name="normalReturnCode" value="${success}"/>
- <!-- 正常的返回信息 -->
- <property name="normalReturnMsg" value="系统交易调用成功!"/>
- </bean>
- </beans>
|