SpringMVC

过滤器 vs 拦截器

两个不同点:使用范围(红色1);拦截范围(蓝色2)

过滤器的配置(在tomcat web.xml配置)

拦截器的配置(在SpringContext.xml配置)

自定义过滤器

 

原文地址:https://www.cnblogs.com/frankcui/p/14087852.html