HandlerInterceptor
Learn HandlerInterceptor (Interceptors, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HandlerInterceptor is the Spring MVC interface ( org.springframework.web.servlet ) with three callbacks around handler execution. Methods : preHandle returns a boolean ; postHandle and afterCompletion return nothing; all three have default empty implementations. Minimal use : implement only the methods you need and register the class with InterceptorRegistry .