acf8c0b2610eb9a2f38fa58ef20bc6f59b886a0d.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
  3. <display-name>Archetype Created Web Application</display-name>
  4. <context-param>
  5. <param-name>contextConfigLocation</param-name>
  6. <param-value>classpath:spring-mybatis.xml</param-value>
  7. </context-param>
  8. <filter>
  9. <filter-name>encodingFilter</filter-name>
  10. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  11. <async-supported>true</async-supported>
  12. <init-param>
  13. <param-name>encoding</param-name>
  14. <param-value>UTF-8</param-value>
  15. </init-param>
  16. </filter>
  17. <filter-mapping>
  18. <filter-name>encodingFilter</filter-name>
  19. <url-pattern>/*</url-pattern>
  20. </filter-mapping>
  21. <listener>
  22. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  23. </listener>
  24. <listener>
  25. <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
  26. </listener>
  27. <servlet>
  28. <servlet-name>SpringMVC</servlet-name>
  29. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  30. <init-param>
  31. <param-name>contextConfigLocation</param-name>
  32. <param-value>classpath:spring-mvc.xml</param-value>
  33. </init-param>
  34. <load-on-startup>1</load-on-startup>
  35. <async-supported>true</async-supported>
  36. </servlet>
  37. <servlet-mapping>
  38. <servlet-name>SpringMVC</servlet-name>
  39. <url-pattern>/</url-pattern>
  40. </servlet-mapping>
  41. <servlet-mapping>
  42. <servlet-name >default </servlet-name >
  43. <url-pattern >*.js</url-pattern>
  44. </servlet-mapping >
  45. <servlet-mapping >
  46. <servlet-name >default </servlet-name >
  47. <url-pattern >*.css</url-pattern>
  48. </servlet-mapping >
  49. <servlet-mapping >
  50. <servlet-name >default </servlet-name >
  51. <url-pattern >*.html</url-pattern>
  52. </servlet-mapping >
  53. <servlet-mapping >
  54. <servlet-name >default </servlet-name >
  55. <url-pattern >*.htm</url-pattern>
  56. </servlet-mapping >
  57. <servlet-mapping >
  58. <servlet-name >default </servlet-name >
  59. <url-pattern >*.gif</url-pattern>
  60. </servlet-mapping >
  61. <welcome-file-list>
  62. <welcome-file>/index.jsp</welcome-file>
  63. </welcome-file-list>
  64. <session-config>
  65. <session-timeout>15</session-timeout>
  66. </session-config>
  67. </web-app>