IT 面试题库

Spring Boot拦截器和过滤器的区别?

中级简答题Java开发工程师Spring拦截器

题目

考察 Filter、Interceptor、AOP 的执行顺序和职责。

参考答案

内容深度:适中 · 无代码示例 · 来源:外部链接 · 已复核 · 24 天前更新

Filter

Interceptor

AOP

顺序:Filter → Interceptor.preHandle → Controller → Interceptor.postHandle → afterCompletion → Filter;自调用会绕过 Interceptor/AOP。

练这道题

同分类 · 高频题

题目与答案就在本页;收藏、批注和错题重练在应用内

这道题看完了?连刷同类题,趁热打铁效果最好 进入刷题