web-old.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  5. http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  6. <context-param>
  7. <param-name>contextConfigLocation</param-name>
  8. <param-value>
  9. /WEB-INF/config/platform/applicationContext.xml
  10. </param-value>
  11. </context-param>
  12. <!--spring监听器的配置,用于在启动Web容器时,自动装配ApplicationContext的配置信息-->
  13. <listener>
  14. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  15. </listener>
  16. <listener>
  17. <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
  18. </listener>
  19. <!-- 使用Spring中的过滤器解决在请求和应答中的中文乱码问题 -->
  20. <filter>
  21. <filter-name>encodingFilter</filter-name>
  22. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  23. <init-param>
  24. <param-name>encoding</param-name>
  25. <param-value>UTF-8</param-value>
  26. </init-param>
  27. <init-param>
  28. <param-name>forceEncoding</param-name>
  29. <param-value>true</param-value>
  30. </init-param>
  31. </filter>
  32. <filter>
  33. <filter-name>baseWebContextFilter</filter-name>
  34. <filter-class>com.xc.opal.base.web.filter.BaseWebContextFilter</filter-class>
  35. <init-param>
  36. <param-name>excludeUrl</param-name>
  37. <param-value>/resources/,/login,/login/authentication,/logout,/forbidden.html,/services/</param-value>
  38. </init-param>
  39. </filter>
  40. <filter>
  41. <filter-name>baseSecurityInterceptorFilter</filter-name>
  42. <filter-class>com.xc.opal.priv.web.filter.BaseSecurityInterceptorFilter</filter-class>
  43. <init-param>
  44. <param-name>excludeUrl</param-name>
  45. <param-value>/resources/,/login,/login/authentication,/logout,forbidden.html,/services/</param-value>
  46. </init-param>
  47. </filter>
  48. <filter-mapping>
  49. <filter-name>encodingFilter</filter-name>
  50. <url-pattern>/*</url-pattern>
  51. </filter-mapping>
  52. <filter-mapping>
  53. <filter-name>baseWebContextFilter</filter-name>
  54. <url-pattern>/*</url-pattern>
  55. </filter-mapping>
  56. <filter-mapping>
  57. <filter-name>baseSecurityInterceptorFilter</filter-name>
  58. <url-pattern>/*</url-pattern>
  59. </filter-mapping>
  60. <servlet>
  61. <servlet-name>SpringDispatcherServlet</servlet-name>
  62. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  63. <init-param>
  64. <param-name>contextConfigLocation</param-name>
  65. <param-value>/WEB-INF/config/platform/applicationContext-servlet.xml</param-value>
  66. </init-param>
  67. <load-on-startup>1</load-on-startup>
  68. </servlet>
  69. <!--
  70. <servlet> <servlet-name>cxf</servlet-name>
  71. <display-name>cxf</display-name> <description>ApacheCXF</description>
  72. <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
  73. <load-on-startup>2</load-on-startup> </servlet> <servlet-mapping>
  74. <servlet-name>cxf</servlet-name>
  75. <url-pattern>/services/*</url-pattern> </servlet-mapping>
  76. -->
  77. <servlet-mapping>
  78. <servlet-name>SpringDispatcherServlet</servlet-name>
  79. <url-pattern>/</url-pattern>
  80. </servlet-mapping>
  81. <!-- *********************报表工具*******************************-->
  82. <servlet>
  83. <servlet-name>ReportServer</servlet-name>
  84. <servlet-class>com.fr.web.ReportServlet</servlet-class>
  85. <load-on-startup>0</load-on-startup>
  86. </servlet>
  87. <servlet-mapping>
  88. <servlet-name>ReportServer</servlet-name>
  89. <url-pattern>/ReportServer</url-pattern>
  90. </servlet-mapping>
  91. <!-- *************************报表结束******************************** -->
  92. <welcome-file-list>
  93. <welcome-file>/login1.jsp</welcome-file>
  94. </welcome-file-list>
  95. <!-- 异常处理 -->
  96. <error-page>
  97. <error-code>403</error-code>
  98. <location>/403.jsp</location>
  99. </error-page>
  100. <error-page>
  101. <error-code>404</error-code>
  102. <location>/404.jsp</location>
  103. </error-page>
  104. <error-page>
  105. <error-code>505</error-code>
  106. <location>/505.jsp</location>
  107. </error-page>
  108. </web-app>