web.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="2.4"
  3. xmlns="http://java.sun.com/xml/ns/j2ee"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  6. <context-param>
  7. <param-name>contextConfigLocation</param-name>
  8. <param-value>classpath*:spring/ctx*.xml</param-value>
  9. </context-param>
  10. <filter>
  11. <filter-name>compositeFilter</filter-name>
  12. <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  13. <init-param>
  14. <param-name>targetFilterLifecycle</param-name>
  15. <param-value>true</param-value>
  16. </init-param>
  17. </filter>
  18. <filter-mapping>
  19. <filter-name>compositeFilter</filter-name>
  20. <url-pattern>/*</url-pattern>
  21. </filter-mapping>
  22. <listener>
  23. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  24. </listener>
  25. <listener>
  26. <listener-class>com.mossle.core.spring.ProxyServletListener</listener-class>
  27. </listener>
  28. <error-page>
  29. <error-code>401</error-code>
  30. <location>/common/401.jsp</location>
  31. </error-page>
  32. <error-page>
  33. <error-code>403</error-code>
  34. <location>/common/403.jsp</location>
  35. </error-page>
  36. <error-page>
  37. <error-code>404</error-code>
  38. <location>/common/404.jsp</location>
  39. </error-page>
  40. <error-page>
  41. <error-code>500</error-code>
  42. <location>/common/500.jsp</location>
  43. </error-page>
  44. <error-page>
  45. <exception-type>java.lang.Throwable</exception-type>
  46. <location>/common/500.jsp</location>
  47. </error-page>
  48. </web-app>