web.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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_2_5.xsd" id="WebApp_ID" version="2.5">
  3. <display-name>fuzhuang1</display-name>
  4. <welcome-file-list>
  5. <welcome-file>jsp/index.jsp</welcome-file>
  6. </welcome-file-list>
  7. <context-param>
  8. <param-name>contextConfigLocation</param-name>
  9. <param-value>classpath:applicationContext.xml</param-value>
  10. </context-param>
  11. <listener>
  12. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  13. </listener>
  14. <filter>
  15. <filter-name>springSessionRepositoryFilter</filter-name>
  16. <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  17. </filter>
  18. <filter-mapping>
  19. <filter-name>springSessionRepositoryFilter</filter-name>
  20. <url-pattern>/*</url-pattern>
  21. </filter-mapping>
  22. <filter>
  23. <filter-name>characterEncoding</filter-name>
  24. <filter-class>com.happy.filter.CharacterEncodingFilter</filter-class>
  25. </filter>
  26. <filter-mapping>
  27. <filter-name>characterEncoding</filter-name>
  28. <url-pattern>/*</url-pattern>
  29. </filter-mapping>
  30. <filter>
  31. <filter-name>login</filter-name>
  32. <filter-class>com.happy.filter.LoginFilter</filter-class>
  33. </filter>
  34. <filter-mapping>
  35. <filter-name>login</filter-name>
  36. <url-pattern>/jsp/*</url-pattern>
  37. </filter-mapping>
  38. <filter>
  39. <filter-name>struts2</filter-name>
  40. <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
  41. </filter>
  42. <filter-mapping>
  43. <filter-name>struts2</filter-name>
  44. <url-pattern>*.action</url-pattern>
  45. </filter-mapping>
  46. <filter-mapping>
  47. <filter-name>struts2</filter-name>
  48. <url-pattern>*.jsp</url-pattern>
  49. </filter-mapping>
  50. <filter>
  51. <filter-name>DruidWebStatFilter</filter-name>
  52. <filter-class>com.alibaba.druid.support.http.WebStatFilter</filter-class>
  53. <init-param>
  54. <param-name>exclusions</param-name>
  55. <param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*</param-value>
  56. </init-param>
  57. </filter>
  58. <filter-mapping>
  59. <filter-name>DruidWebStatFilter</filter-name>
  60. <url-pattern>/*</url-pattern>
  61. </filter-mapping>
  62. <servlet>
  63. <servlet-name>DruidStatView</servlet-name>
  64. <servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
  65. </servlet>
  66. <servlet-mapping>
  67. <servlet-name>DruidStatView</servlet-name>
  68. <url-pattern>/druid/*</url-pattern>
  69. </servlet-mapping>
  70. </web-app>