异常:使用@WebFilter配置好了,过滤器却不执行
@WebFilter(
urlPatterns = {
"/jsps/cart/*","/jsps/order/*"
},
servletNames = {
"CartItemServlet","OrderServlet"
})
原因:待查
解决方案:1、在web.xml中配置
2、不使用ServletNames
@WebFilter(
urlPatterns = {
"/jsps/cart/*","/jsps/order/*","/CartItemServlet","/OrderServlet"
})