HandlerInterceptorAdapter与HandlerInterceptor的区别

HandlerInterceptorAdapter是Spring框架中用来实现拦截器的抽象类,它实现了HandlerInterceptor接口。与HandlerInterceptor相比,HandlerInterceptorAdapter提供了更多的方法来简化实现拦截器的过程。使用HandlerInterceptorAdapter可以只需要重写需要用到的方法,而不需要实现所有的方法。