web.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app>
  3. <display-name>credit</display-name>
  4. <context-param>
  5. <param-name>webAppRootKey</param-name>
  6. <param-value>operator</param-value>
  7. </context-param>
  8. <context-param>
  9. <param-name>contextConfigLocation</param-name>
  10. <param-value>
  11. /WEB-INF/spring/Common-conf.xml,
  12. /WEB-INF/spring/YHB-conf.xml,
  13. /WEB-INF/spring/LMB-conf.xml,
  14. /WEB-INF/spring/YHRZB-conf.xml,
  15. /WEB-INF/spring/HDB-conf.xml,
  16. /WEB-INF/spring/WZB-conf.xml,
  17. /WEB-INF/spring/HTML-conf.xml,
  18. /WEB-INF/spring/WZFJB-conf.xml,
  19. /WEB-INF/spring/ZDB-conf.xml,
  20. /WEB-INF/spring/ZDXB-conf.xml,
  21. /WEB-INF/spring/WZPLB-conf.xml,
  22. /WEB-INF/spring/WZFWB-conf.xml,
  23. /WEB-INF/spring/ZQB-conf.xml,
  24. /WEB-INF/spring/POLLOPTION-conf.xml
  25. /WEB-INF/spring/POLLTITLE-conf.xml,
  26. /WEB-INF/spring/BSBMB-conf.xml,
  27. /WEB-INF/spring/LYB-conf.xml,
  28. /WEB-INF/spring/LYBLY-conf.xml,
  29. /WEB-INF/spring/LYBHF-conf.xml,
  30. /WEB-INF/spring/JDLL-conf.xml,
  31. </param-value>
  32. </context-param>
  33. <context-param>
  34. <param-name>log4jConfigLocation</param-name>
  35. <param-value>/WEB-INF/log4j.xml</param-value>
  36. </context-param>
  37. <context-param>
  38. <param-name>log4jRefreshInterval</param-name>
  39. <param-value>6000</param-value>
  40. </context-param>
  41. <listener>
  42. <listener-class>
  43. org.springframework.web.util.Log4jConfigListener
  44. </listener-class>
  45. </listener>
  46. <servlet>
  47. <servlet-name>loadServlet</servlet-name>
  48. <servlet-class>com.ccgj.platform.interceptor.LoadServlet</servlet-class>
  49. <load-on-startup>2</load-on-startup>
  50. </servlet>
  51. <servlet>
  52. <servlet-name>pushlet</servlet-name>
  53. <servlet-class>nl.justobjects.pushlet.servlet.Pushlet</servlet-class>
  54. <load-on-startup>1</load-on-startup>
  55. </servlet>
  56. <servlet-mapping>
  57. <servlet-name>pushlet</servlet-name>
  58. <url-pattern>/pushlet.srv</url-pattern>
  59. </servlet-mapping>
  60. <filter>
  61. <filter-name>Set Character Encoding</filter-name>
  62. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  63. <init-param>
  64. <param-name>encoding</param-name>
  65. <param-value>utf8</param-value>
  66. </init-param>
  67. </filter>
  68. <filter-mapping>
  69. <filter-name>Set Character Encoding</filter-name>
  70. <url-pattern>/*</url-pattern>
  71. </filter-mapping>
  72. <filter>
  73. <filter-name>AjaxAnywhere</filter-name>
  74. <filter-class>org.ajaxanywhere.AAFilter</filter-class>
  75. </filter>
  76. <filter-mapping>
  77. <filter-name>AjaxAnywhere</filter-name>
  78. <url-pattern>/*</url-pattern>
  79. </filter-mapping>
  80. <filter>
  81. <filter-name>SecurityHeadersFilter</filter-name>
  82. <filter-class>com.ccgj.platform.interceptor.SecurityHeadersFilter</filter-class>
  83. </filter>
  84. <filter-mapping>
  85. <filter-name>SecurityHeadersFilter</filter-name>
  86. <url-pattern>/*</url-pattern>
  87. </filter-mapping>
  88. <filter>
  89. <filter-name>struts2</filter-name>
  90. <filter-class>com.ccgj.platform.interceptor.StrutsPrepareAndExecuteFilter</filter-class>
  91. <init-param>
  92. <param-name>config</param-name>
  93. <param-value>
  94. struts-default.xml,
  95. struts-plugin.xml,
  96. ../struts/struts.xml,
  97. ../struts/index.xml
  98. <!-- ../struts/admin.xml,-->
  99. </param-value>
  100. </init-param>
  101. </filter>
  102. <filter-mapping>
  103. <filter-name>struts2</filter-name>
  104. <url-pattern>/*</url-pattern>
  105. </filter-mapping>
  106. <listener>
  107. <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  108. </listener>
  109. <filter>
  110. <filter-name>ueditorFilter</filter-name>
  111. <filter-class>
  112. com.ccgj.platform.interceptor.UeditorFilter
  113. </filter-class>
  114. </filter>
  115. <filter-mapping>
  116. <filter-name>ueditorFilter</filter-name>
  117. <url-pattern>*.jsp</url-pattern>
  118. </filter-mapping>
  119. <filter>
  120. <filter-name>UrlRewriteFilter</filter-name>
  121. <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
  122. <!-- <init-param> <param-name>logLevel</param-name> <param-value>WARN</param-value>
  123. </init-param> -->
  124. </filter>
  125. <filter-mapping>
  126. <filter-name>UrlRewriteFilter</filter-name>
  127. <url-pattern>/*</url-pattern>
  128. </filter-mapping>
  129. <servlet>
  130. <servlet-name>context</servlet-name>
  131. <servlet-class>com.base.common.spring.SpringContextLoaderServlet</servlet-class>
  132. <load-on-startup>1</load-on-startup>
  133. </servlet>
  134. <servlet>
  135. <servlet-name>imageServlet</servlet-name>
  136. <servlet-class>com.base.common.servlet.TextIntoImageServlet</servlet-class>
  137. </servlet>
  138. <servlet>
  139. <servlet-name>InitListener</servlet-name>
  140. <servlet-class>com.ccgj.platform.util.InitListener</servlet-class>
  141. <load-on-startup>5</load-on-startup>
  142. </servlet>
  143. <servlet-mapping>
  144. <servlet-name>imageServlet</servlet-name>
  145. <url-pattern>/imageServlet</url-pattern>
  146. </servlet-mapping>
  147. <servlet>
  148. <servlet-name>createBarCode</servlet-name>
  149. <servlet-class>com.soft4j.barcode.BarCodeServlet</servlet-class>
  150. </servlet>
  151. <servlet-mapping>
  152. <servlet-name>createBarCode</servlet-name>
  153. <url-pattern>/createBarCode</url-pattern>
  154. </servlet-mapping>
  155. <jsp-config>
  156. <taglib>
  157. <taglib-uri>/tags/ajaxanywhere.tld</taglib-uri>
  158. <taglib-location>/WEB-INF/tld/ajaxanywhere.tld</taglib-location>
  159. </taglib>
  160. </jsp-config>
  161. <session-config>
  162. <session-timeout>30</session-timeout>
  163. </session-config>
  164. <welcome-file-list>
  165. <welcome-file>/main/nw-index.jsp</welcome-file>
  166. <welcome-file>login.jsp</welcome-file>
  167. </welcome-file-list>
  168. <default-action-ref name="error" />
  169. <action name="error">
  170. <result>/error.jsp</result>
  171. </action>
  172. <error-page>
  173. <error-code>404</error-code>
  174. <location>/error.jsp?ecode=404</location>
  175. </error-page>
  176. <error-page>
  177. <error-code>500</error-code>
  178. <location>/error.jsp?ecode=500</location>
  179. </error-page>
  180. <error-page>
  181. <error-code>505</error-code>
  182. <location>/error.jsp?ecode=505</location>
  183. </error-page>
  184. <listener>
  185. <listener-class>
  186. com.ccgj.platform.timer.NFDFlightDataTaskListener
  187. </listener-class>
  188. </listener>
  189. </web-app>