web.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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>bigData</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>characterEncoding</filter-name>
  16. <filter-class>com.happy.filter.CharacterEncodingFilter</filter-class>
  17. </filter>
  18. <filter-mapping>
  19. <filter-name>characterEncoding</filter-name>
  20. <url-pattern>/*</url-pattern>
  21. </filter-mapping>
  22. <filter>
  23. <filter-name>struts2</filter-name>
  24. <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
  25. </filter>
  26. <filter-mapping>
  27. <filter-name>struts2</filter-name>
  28. <url-pattern>*.action</url-pattern>
  29. </filter-mapping>
  30. <filter-mapping>
  31. <filter-name>struts2</filter-name>
  32. <url-pattern>*.jsp</url-pattern>
  33. </filter-mapping>
  34. <filter>
  35. <filter-name>DruidWebStatFilter</filter-name>
  36. <filter-class>com.alibaba.druid.support.http.WebStatFilter</filter-class>
  37. <init-param>
  38. <param-name>exclusions</param-name>
  39. <param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*</param-value>
  40. </init-param>
  41. </filter>
  42. <filter-mapping>
  43. <filter-name>DruidWebStatFilter</filter-name>
  44. <url-pattern>/*</url-pattern>
  45. </filter-mapping>
  46. <servlet>
  47. <servlet-name>DruidStatView</servlet-name>
  48. <servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
  49. </servlet>
  50. <servlet-mapping>
  51. <servlet-name>DruidStatView</servlet-name>
  52. <url-pattern>/druid/*</url-pattern>
  53. </servlet-mapping>
  54. </web-app>