Issue
This Content is from Stack Overflow. Question asked by Sandip Gadade
HandlerInterceptorAdapter is deprecated
this is my code
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
public class MyInterceptor extends HandlerInterceptorAdapter{
}
Solution
The Handler interceptor adapter deprecated because new HandlerInterceptor interface have default methods now. Simple remove HandlerInterceptorAdapter and implements HandlerInterceptor.
Answered by George_A
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 4.0.