过滤器与拦截器_拦截器

主要区别:

接口规范不同:过滤器实现filter接口,拦截器实现handlerinterceptor接口;

拦截范围不同:过滤器拦截所有,interceptor只拦截spring中的资源。