<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
  <display-name>demo</display-name>
  
  <!-- 配置web.xml文件 -->
 	<servlet>
     <servlet-name>Test</servlet-name>
     <servlet-class>cn.demo.Test</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Test</servlet-name>
        <!--浏览器中输入的url，可以随意取名  但是注意加"/" -->
        <url-pattern>/Test</url-pattern>
    </servlet-mapping>
 
</web-app>