123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <?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.xsd
- http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
- <!-- Spring的xml配置中的属性变量加载 -->
- <bean id="propertyConfigurer"
- class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
- <property name="locations">
- <list>
- <value>classpath:application-minicore.properties</value>
- </list>
- </property>
- <property name="ignoreUnresolvablePlaceholders" value="true"/>
- </bean>
- <!-- 扫描系统交易的预处理加载注册,不欲加入不影响使用 -->
- <!-- <bean id="searchExecProcess" class="com.miniframe.core.SearchExecProcess"/>-->
- <!-- 客户端通讯服务类 同步通讯:com.miniframe.httpclient.HttpClient,
- 异步通讯:com.miniframe.httpclient.HttpAsyncClient
- 双向加密:com.miniframe.httpclient.HttpSslClient -->
-
- <!-- 同步通讯 -->
- <bean id="httpSyncClient" 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.httpservice.PreHttpRouteProxy"/>
-
- <!-- 交易前处理,预留接口例子 -->
- <bean id="preProcessFlow" class="com.miniframe.httpservice.PreProcessFlow"/>
- <!-- 交易后处理,预留接口例子 -->
- <bean id="nextProcessFlow" class="com.miniframe.httpservice.NextProcessFlow"/>
- <!-- 交易后处理,预留接口例子 -->
- <bean id="errorProcessFlow" class="com.miniframe.httpservice.ErrorProcessFlow"/>
- <!-- 通讯异步路由代理 通讯同步机制: com.miniframe.httpproxy.HttpRouteProxy
- 通讯异步机制: com.miniframe.httpproxy.HttpAyncRouteProxy -->
-
- <bean id="httpRouteProxy" class="com.miniframe.httpproxy.HttpAyncRouteProxy">
- <!-- 路由代理的前处理,需要拦截增加头信息等,返回非空为错误,必须包含错误的信息报文 -->
- <property name="preHttpRouteProxy" ref="preHttpRouteProxy" />
- <property name="uriMap">
- <map>
- <!-- <entry key="/TransServlet/service/block" value="lb:gzl.block-upchain-service/TransServlet"/>-->
- <!-- <entry key="/TransServlet/service/browser" value="lb:gzl.block-browser-service/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="x-auth-token,x-auth-user"/>
- <!-- 服务器端http返回头传送内容 -->
- <property name="serverHttpHead" value="x-auth-token,x-auth-user"/>
-
- <!-- 心跳错误检测码 -->
- <property name="hearterrorcode" value="${mf.minicore.hearterrorcode}"/>
-
- <!-- 交易码的key -->
- <property name="transCode" value="transCode"/>
- <!-- 返回码key -->
- <property name="returnCode" value="returnCode"/>
- <!-- 返回信息key -->
- <property name="returnMsg" value="returnMsg"/>
- <!-- 缺省异常的返回码 -->
- <property name="exceptionReturnCode" value="${mf.minicore.systemerror}"/>
- <!-- 缺省异常的返回信息 -->
- <property name="exceptionReturnMsg" value="系统交易调用失败!"/>
- <!-- 正常的返回码 -->
- <property name="normalReturnCode" value="${mf.minicore.success}"/>
- <!-- 正常的返回信息 -->
- <property name="normalReturnMsg" value="系统交易调用成功!"/>
- </bean>
- </beans>
|