Posted On: Apr 01, 2020
The Spring MVC Interceptor is used to intercept the requests from the client and handles them. To intercept and process the HTTP request before handing it over to the controller, we use the Spring MVC Interceptor.
It declares three methods based on where to intercept the HTTP request. The three methods are preHandle(), postHandle, and afterCompletion(). These methods provide flexibility in doing all kinds of pre- and post-processing.
Never Miss an Articles from us.