web.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  3. <display-name>港口局经营管理系统</display-name>
  4. <context-param>
  5. <param-name>contextConfigLocation</param-name>
  6. <param-value>
  7. classpath*:/spring/applicationContext*.xml,
  8. classpath*:/spring/cxf-beans.xml
  9. </param-value>
  10. </context-param>
  11. <context-param>
  12. <param-name>log4jConfigLocation</param-name>
  13. <param-value>classpath:/log4j/log4j.xml</param-value>
  14. </context-param>
  15. <context-param>
  16. <description>in seconds</description>
  17. <param-name>session_timeout</param-name>
  18. <param-value>6000</param-value>
  19. </context-param>
  20. <context-param>
  21. <description>0:省级;1:市级</description>
  22. <param-name>deploy_mode</param-name>
  23. <param-value>1</param-value>
  24. </context-param>
  25. <context-param>
  26. <description>区域代码</description>
  27. <param-name>city_code</param-name>
  28. <param-value>90012</param-value>
  29. </context-param>
  30. <context-param>
  31. <description>上传文件大小(M)</description>
  32. <param-name>upload_file_size</param-name>
  33. <param-value>20</param-value>
  34. </context-param>
  35. <context-param>
  36. <description>附件上传路径</description>
  37. <param-name>upload_file_path</param-name>
  38. <param-value>D:/upload</param-value>
  39. </context-param>
  40. <context-param>
  41. <description>浏览图片路径</description>
  42. <param-name>view_file_path</param-name>
  43. <param-value>D:/jyxkzAndFz</param-value>
  44. </context-param>
  45. <context-param>
  46. <description>地市简称</description>
  47. <param-name>dsjc</param-name>
  48. <param-value>ZJ</param-value>
  49. </context-param>
  50. <context-param>
  51. <param-name>webAppRootKey</param-name>
  52. <param-value>app.root</param-value>
  53. </context-param>
  54. <context-param>
  55. <param-name>log4jRefreshInterval</param-name>
  56. <param-value>3000</param-value>
  57. </context-param>
  58. <context-param>
  59. <param-name>resourceCacheTime</param-name>
  60. <param-value>3600</param-value>
  61. </context-param>
  62. <listener>
  63. <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  64. </listener>
  65. <listener>
  66. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  67. </listener>
  68. <listener>
  69. <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
  70. </listener>
  71. <listener>
  72. <listener-class>com.xt.jygl.common.ContextListener</listener-class>
  73. </listener>
  74. <filter>
  75. <filter-name>encodingFilter</filter-name>
  76. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  77. <init-param>
  78. <param-name>encoding</param-name>
  79. <param-value>UTF-8</param-value>
  80. </init-param>
  81. <init-param>
  82. <param-name>forceEncoding</param-name>
  83. <param-value>true</param-value>
  84. </init-param>
  85. </filter>
  86. <filter>
  87. <filter-name>shiroFilter</filter-name>
  88. <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  89. <init-param>
  90. <param-name>targetFilterLifecycle</param-name>
  91. <param-value>true</param-value>
  92. </init-param>
  93. </filter>
  94. <filter>
  95. <filter-name>openSessionInViewFilter</filter-name>
  96. <filter-class>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter</filter-class>
  97. </filter>
  98. <filter-mapping>
  99. <filter-name>encodingFilter</filter-name>
  100. <url-pattern>/*</url-pattern>
  101. </filter-mapping>
  102. <filter>
  103. <filter-name>openEntityManagerInViewFilter</filter-name>
  104. <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class>
  105. </filter>
  106. <filter-mapping>
  107. <filter-name>openEntityManagerInViewFilter</filter-name>
  108. <url-pattern>/*</url-pattern>
  109. </filter-mapping>
  110. <filter-mapping>
  111. <filter-name>openSessionInViewFilter</filter-name>
  112. <url-pattern>/*</url-pattern>
  113. </filter-mapping>
  114. <filter-mapping>
  115. <filter-name>shiroFilter</filter-name>
  116. <url-pattern>/*</url-pattern>
  117. </filter-mapping>
  118. <servlet>
  119. <servlet-name>InitServlet</servlet-name>
  120. <servlet-class>com.xt.jygl.common.InitServlet</servlet-class>
  121. <init-param>
  122. <param-name>initSystem</param-name>
  123. <param-value>true</param-value>
  124. </init-param>
  125. <load-on-startup>99</load-on-startup>
  126. </servlet>
  127. <servlet>
  128. <servlet-name>springServlet</servlet-name>
  129. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  130. <init-param>
  131. <param-name>contextConfigLocation</param-name>
  132. <param-value>classpath*:/spring/spring-mvc.xml</param-value>
  133. </init-param>
  134. <load-on-startup>2</load-on-startup>
  135. </servlet>
  136. <servlet-mapping>
  137. <servlet-name>springServlet</servlet-name>
  138. <url-pattern>/</url-pattern>
  139. </servlet-mapping>
  140. <session-config>
  141. <session-timeout>20</session-timeout>
  142. </session-config>
  143. <error-page>
  144. <error-code>404</error-code>
  145. <location>/WEB-INF/pages/error/404.jsp</location>
  146. </error-page>
  147. <error-page>
  148. <error-code>403</error-code>
  149. <location>/WEB-INF/pages/error/403.jsp</location>
  150. </error-page>
  151. <error-page>
  152. <error-code>500</error-code>
  153. <location>/WEB-INF/pages/error/500.jsp</location>
  154. </error-page>
  155. <welcome-file-list>
  156. <welcome-file>index.html</welcome-file>
  157. <welcome-file>index.htm</welcome-file>
  158. <welcome-file>index.jsp</welcome-file>
  159. <welcome-file>default.html</welcome-file>
  160. <welcome-file>default.htm</welcome-file>
  161. <welcome-file>default.jsp</welcome-file>
  162. </welcome-file-list>
  163. </web-app>