web.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
  5. version="4.0">
  6. <servlet>
  7. <description>This is the description of my J2EE component</description>
  8. <display-name>This is the display name of my J2EE component</display-name>
  9. <servlet-name>AuthServlet</servlet-name>
  10. <servlet-class>com.hei.servlet.AuthServlet</servlet-class>
  11. </servlet>
  12. <servlet-mapping>
  13. <servlet-name>AuthServlet</servlet-name>
  14. <url-pattern>/AuthServlet.do</url-pattern>
  15. </servlet-mapping>
  16. <!-- 认证系统域名-->
  17. <context-param>
  18. <param-name>DomainName</param-name>
  19. <param-value>localhost</param-value>
  20. </context-param>
  21. <!-- 认证系统名称-->
  22. <context-param>
  23. <param-name>CookieName</param-name>
  24. <param-value>SSOID</param-value>
  25. </context-param>
  26. <!--
  27. welcome-file-list是一个配置在web.xml中的一个欢迎页,
  28. 用于当用户在url中输入工程名称或者输入web容器url(如http://localhost:8888/)时直接跳转的页面.
  29. -->
  30. <welcome-file-list>
  31. <welcome-file>index.jsp</welcome-file>
  32. </welcome-file-list>
  33. </web-app>