web.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_2_5.xsd" id="WebApp_ID" version="2.5">
  3. <display-name>frame-core</display-name>
  4. <context-param>
  5. <param-name>contextConfigLocation</param-name>
  6. <param-value>classpath:spring-context.xml
  7. classpath:quartz-task.xml
  8. </param-value>
  9. </context-param>
  10. <listener>
  11. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  12. </listener>
  13. <servlet>
  14. <servlet-name>dispatcher</servlet-name>
  15. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  16. <init-param>
  17. <param-name>contextConfigLocation</param-name>
  18. <param-value>classpath:spring-mvc.xml</param-value>
  19. </init-param>
  20. <load-on-startup>1</load-on-startup>
  21. </servlet>
  22. <servlet-mapping>
  23. <servlet-name>dispatcher</servlet-name>
  24. <url-pattern>*.do</url-pattern>
  25. </servlet-mapping>
  26. <filter>
  27. <filter-name>encoding</filter-name>
  28. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  29. <init-param>
  30. <param-name>encoding</param-name>
  31. <param-value>UTF-8</param-value>
  32. </init-param>
  33. </filter>
  34. <filter-mapping>
  35. <filter-name>encoding</filter-name>
  36. <url-pattern>*.do</url-pattern>
  37. </filter-mapping>
  38. <filter>
  39. <filter-name>osivFilter</filter-name>
  40. <filter-class>org.springframework.orm.hibernate4.support.OpenSessionInViewFilter</filter-class>
  41. </filter>
  42. <filter-mapping>
  43. <filter-name>osivFilter</filter-name>
  44. <url-pattern>/*</url-pattern>
  45. </filter-mapping>
  46. <filter>
  47. <filter-name>springSecurityFilterChain</filter-name>
  48. <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  49. </filter>
  50. <filter-mapping>
  51. <filter-name>springSecurityFilterChain</filter-name>
  52. <url-pattern>/*</url-pattern>
  53. </filter-mapping>
  54. <welcome-file-list>
  55. <welcome-file>index.jsp</welcome-file>
  56. </welcome-file-list>
  57. </web-app>