Google News
logo
Java Spring MVC - Interview Questions
Explain the function of the Spring MVC interceptor along with its usage.
Interceptors play a handy role in Spring MVC. They are used to intercept the request from the client, process the request at different times like before handling the request, after handling the request and after completion of the presentation part i.e. view page, etc.
 
It is also used from cross-cutting concerns and reduces the code handler repetition like a modification of global parameters in the model later, logging, etc.
Advertisement