web.xml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  5. id="WebApp_ID" version="2.5">
  6. <context-param>
  7. <param-name>webAppRootKey</param-name>
  8. <param-value>xxl-job-client-demo</param-value>
  9. </context-param>
  10. <context-param>
  11. <param-name>contextConfigLocation</param-name>
  12. <param-value>classpath*:applicationcontext-*.xml</param-value>
  13. </context-param>
  14. <listener>
  15. <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  16. </listener>
  17. <listener>
  18. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  19. </listener>
  20. <!-- Servlet任务执行器,推荐使用Jetty任务执行器 -->
  21. <!--
  22. <servlet>
  23. <servlet-name>XxlJobServlet</servlet-name>
  24. <servlet-class>com.xxl.job.client.netcom.servlet.XxlJobServlet</servlet-class>
  25. <load-on-startup>1</load-on-startup>
  26. </servlet>
  27. <servlet-mapping>
  28. <servlet-name>XxlJobServlet</servlet-name>
  29. <url-pattern>/xxlJobServlet</url-pattern>
  30. </servlet-mapping>
  31. -->
  32. <welcome-file-list>
  33. <welcome-file>index.html</welcome-file>
  34. </welcome-file-list>
  35. </web-app>