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.
MVC (Model-View-Controller) pattern is an application design model that is comprised of three interconnected parts. Here, the model represents the object. It can also have logic to update the controll...
Spring MVC framework is a type of Model-View-Controller architecture that provides components to develop flexible and loosely coupled web applications. This Java framework provides the DispatchServlet...
The DispatcherServlet class s used to receive the incoming request and map the request to the right resource like controllers, models, and views. Apart from acting as a controller, the DispatchSetvler...