HandlerInterceptorAdapter是Spring框架中用来实现拦截器的抽象类,它实现了HandlerInterceptor接口。与HandlerInterceptor相比,HandlerInterceptorAdapter提供了更多的方法来简化实现拦截器的过程。使用HandlerInterceptorAdapter可以只需要重写需要用到的方法,而不需要实现所有的方法。
HandlerInterceptorAdapter与HandlerInterceptor的区别
最新推荐文章于 2023-12-21 10:23:46 发布