<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>hallo</servlet-name>
<servlet-class>com.turing.servlet.HalloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>hallo</servlet-name>
<url-pattern>/hallo</url-pattern>
</servlet-mapping>
<filter>
<filter-name>hallo</filter-name>
<filter-class>com.kuang.servlet.HalloServlet</filter-class>
</filter>
<filter-mapping>
<filter-name>hallo</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>```
servlet filter 配置文件
最新推荐文章于 2020-05-13 08:47:28 发布