HandlerInterceptorAdapter is deprecated
this is my code
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
public class MyInterceptor extends HandlerInterceptorAdapter{
}
screenshot of code
enter image description here
The Handler interceptor adapter has been deprecated because the new HandlerInterceptor interface has default methods now. Simply remove HandlerInterceptorAdapter and implement HandlerInterceptor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With