applicationContext-service.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
  4. xmlns:tx="http://www.springframework.org/schema/tx"
  5. xsi:schemaLocation="
  6. http://www.springframework.org/schema/beans classpath:schema/beans/spring-beans-2.5.xsd
  7. http://www.springframework.org/schema/tx classpath:schema/tx/spring-tx-2.5.xsd
  8. http://www.springframework.org/schema/aop classpath:schema/aop/spring-aop-2.5.xsd">
  9. <!-- Spring的xml配置中的属性变量加载 -->
  10. <bean id="propertyConfigurer"
  11. class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  12. <property name="locations">
  13. <list>
  14. <value>classpath:jdbc.properties</value>
  15. <value>classpath:minicore.properties</value>
  16. </list>
  17. </property>
  18. </bean>
  19. <!-- I18n的国际化管理部分 -->
  20. <bean id="messageSource" class="com.miniframe.core.ReloadMiniMessageSource">
  21. <property name="basenames">
  22. <list>
  23. <value>validator</value>
  24. <value>returncode</value>
  25. </list>
  26. </property>
  27. </bean>
  28. <!-- 验证工厂,加载验证配置项 -->
  29. <bean id="validatorFactory" class="com.miniframe.core.validator.MiniValidatorFactory">
  30. <property name="validationConfigLocations">
  31. <list>
  32. <value>classpath:validator-rules.xml</value>
  33. <value>classpath:validateform</value>
  34. </list>
  35. </property>
  36. </bean>
  37. <!-- 验证调用入口类 -->
  38. <bean id="beanValidator"
  39. class="org.springmodules.validation.commons.DefaultBeanValidator">
  40. <property name="validatorFactory" ref="validatorFactory" />
  41. </bean>
  42. <!-- 扫描系统交易的预处理加载注册,不欲加入不影响使用 -->
  43. <bean id="searchExecProcess" class="com.miniframe.core.SearchExecProcess"/>
  44. <!-- 客户端通讯服务类 同步通讯:com.miniframe.httpclient.HttpClient,
  45. 异步通讯:com.miniframe.httpclient.HttpAsyncClient
  46. 双向加密:com.miniframe.httpclient.HttpSslClient -->
  47. <!-- 同步通讯 -->
  48. <bean id="httpClient" class="com.miniframe.httpclient.HttpClient"/>
  49. <!-- 异步通讯 -->
  50. <bean id="httpAsyncClient" class="com.miniframe.httpclient.HttpAsyncClient"/>
  51. <!-- 双向加密 -->
  52. <bean id="httpSslClient" class="com.miniframe.httpclient.HttpSslClient">
  53. <!-- 服务器端证书 jks格式 -->
  54. <property name="jksStoreClassPath" value="server.jks"/>
  55. <!-- 服务器端证书密码 -->
  56. <property name="jksPassWord" value="123456"/>
  57. <!-- 客户端证书 p12格式 -->
  58. <property name="p12ClassPath" value="client.p12"/>
  59. <!-- 客户端证书密码 -->
  60. <property name="p12PassWord" value="123456"/>
  61. </bean>
  62. <!-- 路由前处理,为判断权限等拦截使用 -->
  63. <bean id="preHttpRouteProxy" class="com.miniframe.service.PreHttpRouteProxy"/>
  64. <!-- 交易前处理,预留接口例子 -->
  65. <bean id="preProcessFlow" class="com.miniframe.service.PreProcessFlow"/>
  66. <!-- 交易后处理,预留接口例子 -->
  67. <bean id="nextProcessFlow" class="com.miniframe.service.NextProcessFlow"/>
  68. <!-- 交易后处理,预留接口例子 -->
  69. <bean id="errorProcessFlow" class="com.miniframe.service.ErrorProcessFlow"/>
  70. <!--  通讯异步路由代理 通讯同步机制: com.miniframe.httpproxy.HttpRouteProxy
  71. 通讯异步机制: com.miniframe.httpproxy.HttpAyncRouteProxy -->
  72. <bean id="httpRouteProxy" class="com.miniframe.httpproxy.HttpRouteProxy">
  73. <!-- 路由代理的前处理,需要拦截增加头信息等,返回非空为错误,必须包含错误的信息报文 -->
  74. <property name="preHttpRouteProxy" ref="preHttpRouteProxy" />
  75. <property name="uriMap">
  76. <map>
  77. <!-- entry key="/manager/TransServlet" value="http://127.0.0.1:9080/SafeServlet"/ -->
  78. <!--<entry key="/serviceineyes/TransServlet" value="http://127.0.0.1:8089/SafeServlet"/>-->
  79. <!--<entry key="/serviceineyes/TransServlet" value="http://192.168.219.183:23100/SafeServlet"/>-->
  80. <!--<entry key="/manager/ineyes/TransServlet" value="http://127.0.0.1:8089/SafeServlet"/>-->
  81. <entry key="/managersvr/manager/cae/TransServlet" value="http://192.168.0.140:32410/SafeServlet"/>
  82. <entry key="/managersvr/manager/gzl/TransServlet" value="http://192.168.0.140:32430/"/>
  83. <!--<entry key="/managersvr/manager/trademark/TransServlet" value="http://192.168.0.140:32410/SafeServlet"/>-->
  84. <!--<entry key="/managersvr/manager/pay/TransServlet" value="http://127.0.0.1:8081/SafeServlet"/>-->
  85. <!--<entry key="/managersvr/manager/browser/TransServlet" value="http://192.168.0.10:8082/notarybrowser/TransServlet"/>-->
  86. <!--<entry key="/managersvr/manager/gzl/TransServlet" value="http://192.168.0.140:32200/"/>-->
  87. <!--<entry key="/managersvr/manager/pay/TransServlet" value="http://192.168.0.140:32201/SafeServlet"/>-->
  88. <!--<entry key="/managersvr/manager/browser/TransServlet" value="http://192.168.0.140:32101/"/>-->
  89. <!--<entry key="/managersvr/manager/browser/TransServlet" value="http://192.168.0.140:32003/notarybrowser/TransServlet"/>-->
  90. </map>
  91. </property>
  92. </bean>
  93. <!-- Http服务器 -->
  94. <bean id="httpTransService" class="com.miniframe.httpserver.HttpTransService">
  95. <!-- 路由代理 -->
  96. <property name="httpRouteProxy" ref="httpRouteProxy" />
  97. <!-- 交易前处理 -->
  98. <property name="preProcessFlow" ref="preProcessFlow" />
  99. <!-- 交易后处理 -->
  100. <property name="nextProcessFlow" ref="nextProcessFlow" />
  101. <!-- 交易错误处理 -->
  102. <property name="errorProcessFlow" ref="errorProcessFlow" />
  103. <!-- 是否将交易码转化为URL -->
  104. <property name="code2uri" value="false"/>
  105. <!-- 客户端http头传送内容 -->
  106. <property name="clienthttpHead" value=""/>
  107. <!-- 服务器端http返回头传送内容 -->
  108. <property name="serverHttpHead" value=""/>
  109. <!-- 心跳错误检测码 -->
  110. <property name="hearterrorcode" value="${hearterrorcode}"/>
  111. <!-- 服务监听的IP -->
  112. <property name="host" value="${httpserver.host}"/>
  113. <!-- 服务监听的Port -->
  114. <property name="port" value="${httpserver.port}"/>
  115. <!-- 交易码的key -->
  116. <property name="transCode" value="transCode"/>
  117. <!-- 返回码key -->
  118. <property name="returnCode" value="returnCode"/>
  119. <!-- 返回信息key -->
  120. <property name="returnMsg" value="returnMsg"/>
  121. <!-- 缺省异常的返回码 -->
  122. <property name="exceptionReturnCode" value="${systemerror}"/>
  123. <!-- 缺省异常的返回信息 -->
  124. <property name="exceptionReturnMsg" value="系统交易调用失败!"/>
  125. <!-- 正常的返回码 -->
  126. <property name="normalReturnCode" value="${success}"/>
  127. <!-- 正常的返回信息 -->
  128. <property name="normalReturnMsg" value="系统交易调用成功!"/>
  129. </bean>
  130. </beans>