web.xml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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>contextConfigLocation</param-name>
  8. <param-value>classpath*:applicationcontext-*.xml</param-value>
  9. </context-param>
  10. <listener>
  11. <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  12. </listener>
  13. <listener>
  14. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  15. </listener>
  16. <!-- Dianping Job Servlet -->
  17. <servlet>
  18. <servlet-name>DianpingJobServlet</servlet-name>
  19. <servlet-class>com.dianping.job.client.netcom.http.DianpingJobServlet</servlet-class>
  20. <load-on-startup>1</load-on-startup>
  21. </servlet>
  22. <servlet-mapping>
  23. <servlet-name>DianpingJobServlet</servlet-name>
  24. <url-pattern>/dianpingJobServlet</url-pattern>
  25. </servlet-mapping>
  26. <display-name>clock-job-web</display-name>
  27. <welcome-file-list>
  28. <welcome-file>index.html</welcome-file>
  29. </welcome-file-list>
  30. </web-app>