<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
				http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
         version="4.0"
         metadata-complete="true">

<!--  <servlet>-->
<!--    <servlet-name>ShowServlet</servlet-name>-->
<!--    <servlet-class>com.mahe666.servlet.ShowServlet</servlet-class>-->
<!--  </servlet>-->
<!--  <servlet-mapping>-->
<!--    <servlet-name>ShowServlet</servlet-name>-->
<!--    &lt;!&ndash;这个请求经过过滤器&ndash;&gt;-->
<!--    <url-pattern>/servlet/show</url-pattern>-->
<!--    &lt;!&ndash;这个请求没有经过过滤器&ndash;&gt;-->
<!--    <url-pattern>/show</url-pattern>-->
<!--  </servlet-mapping>-->

<!--  <filter>-->
<!--    <filter-name>CharacterEncodingFilter</filter-name>-->
<!--    <filter-class>com.mahe666.filter.CharacterEncodingFilter</filter-class>-->
<!--  </filter>-->
<!--  <filter-mapping>-->
<!--    <filter-name>CharacterEncodingFilter</filter-name>-->
<!--    &lt;!&ndash;只要是 /servlet 下的请求，都经过过滤器&ndash;&gt;-->
<!--    <url-pattern>/servlet/*</url-pattern>-->
<!--    &lt;!&ndash;可以在一个 filter-mapping 标签下写多个 url-pattern&ndash;&gt;-->
<!--&lt;!&ndash;    <url-pattern></url-pattern>&ndash;&gt;-->
<!--  </filter-mapping>-->
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>com.mahe666.servlet.LoginServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/servlet/login</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>LogoutServlet</servlet-name>
    <servlet-class>com.mahe666.servlet.LogoutServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>LogoutServlet</servlet-name>
    <url-pattern>/servlet/logout</url-pattern>
  </servlet-mapping>

  <filter>
    <filter-name>SysFilter</filter-name>
    <filter-class>com.mahe666.filter.SysFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>SysFilter</filter-name>
    <url-pattern>/sys/*</url-pattern>
  </filter-mapping>
  
  
  
  
  
  

</web-app>