<?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>
    <servlet-name>helloServlet</servlet-name>
    <!--填写需要注册的类-->
    <servlet-class>com.mahe666.servlet.HelloServlet</servlet-class>
  </servlet>
  <!--Servlet请求路径-->
  <servlet-mapping>
    <servlet-name>helloServlet</servlet-name>
    <!--浏览器请求的地址，当我们在浏览器中访问这个地址的时候，就会返回被注册的类-->
    <url-pattern>/helloServlet</url-pattern>
  </servlet-mapping>

  <!--404-->
  <servlet>
    <servlet-name>error</servlet-name>
    <servlet-class>com.mahe666.servlet.ErrorServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>error</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

</web-app>