void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException...{
// 进行逻辑处理
System.out.println("in doFilter");
// 一定要记得这个,逻辑处理完之后,调用过滤器链,去进入到下一个过滤器...引用第三方的过滤器
有种情况是jar包里面提供了第三方的过滤器,我们没有办法加WebFilter注解,这时候就要用另外一种方式添加了,如这里有个ThirdFilter:
/**
* 这是一个第三方的Filter...void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException...{
// 进行逻辑处理
System.out.println("in ThirdFilter");
// 一定要记得这个,逻辑处理完之后,调用过滤器链,