JSP中Filter无效问题 写了个登录过滤器,用于阻止未登录用户访问网站页面,刚开始的写法如下:
@WebFilter(filterName = "/LoginFilter", urlPatterns = {"/*"})