GraduationDesignThesisOpeni.../黑马毕业设计论文开题报告和代码/项目源代码/goods/WebRoot/WEB-INF/web.xml

130 lines
5.0 KiB
XML
Raw Permalink Normal View History

2023-09-24 07:47:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<filter>
<filter-name>EncodingFilter</filter-name>
<filter-class>cn.itcast.filter.EncodingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>EncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>UserServlet</servlet-name>
<servlet-class>cn.itcast.goods.user.web.servlet.UserServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserServlet</servlet-name>
<url-pattern>/UserServlet</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>VerifyCodeServlet</servlet-name>
<servlet-class>cn.itcast.vcode.servlet.VerifyCodeServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>CategoryServlet</servlet-name>
<servlet-class>cn.itcast.goods.category.web.servlet.CategoryServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>BookServlet</servlet-name>
<servlet-class>cn.itcast.goods.book.web.servlet.BookServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>CartItemServlet</servlet-name>
<servlet-class>cn.itcast.goods.cart.web.servlet.CartItemServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>OrderServlet</servlet-name>
<servlet-class>cn.itcast.goods.order.web.servlet.OrderServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AdminServlet</servlet-name>
<servlet-class>cn.itcast.goods.admin.admin.web.servlet.AdminServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AdminCategoryServlet</servlet-name>
<servlet-class>cn.itcast.goods.admin.category.web.servlet.AdminCategoryServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AdminBookServlet</servlet-name>
<servlet-class>cn.itcast.goods.admin.book.web.servlet.AdminBookServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AdminAddBookServlet</servlet-name>
<servlet-class>cn.itcast.goods.admin.book.web.servlet.AdminAddBookServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AdminOrderServlet</servlet-name>
<servlet-class>cn.itcast.goods.admin.web.servlet.AdminOrderServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>VerifyCodeServlet</servlet-name>
<url-pattern>/VerifyCodeServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CategoryServlet</servlet-name>
<url-pattern>/CategoryServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>BookServlet</servlet-name>
<url-pattern>/BookServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CartItemServlet</servlet-name>
<url-pattern>/CartItemServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>OrderServlet</servlet-name>
<url-pattern>/OrderServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminServlet</servlet-name>
<url-pattern>/AdminServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminCategoryServlet</servlet-name>
<url-pattern>/admin/AdminCategoryServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminBookServlet</servlet-name>
<url-pattern>/admin/AdminBookServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminAddBookServlet</servlet-name>
<url-pattern>/admin/AdminAddBookServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminOrderServlet</servlet-name>
<url-pattern>/admin/AdminOrderServlet</url-pattern>
</servlet-mapping>
<filter>
<display-name>LoginFilter</display-name>
<filter-name>LoginFilter</filter-name>
<filter-class>cn.itcast.goods.web.filter.LoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>/jsps/cart/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<servlet-name>CartItemServlet</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>/jsps/order/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<servlet-name>OrderServlet</servlet-name>
</filter-mapping>
<filter>
<display-name>AdminLoginFilter</display-name>
<filter-name>AdminLoginFilter</filter-name>
<filter-class>cn.itcast.goods.admin.web.filter.AdminLoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AdminLoginFilter</filter-name>
<url-pattern>/adminjsps/admin/*</url-pattern>
<url-pattern>/admin/*</url-pattern>
</filter-mapping>
</web-app>