Interview questions
Question 78 of 254
FreeWhat is DispatcherServlet, and what role does it play in Spring MVC?
Spring MVC & REST APIs
DispatcherServlet is the single front-controller servlet that receives every incoming HTTP request for a Spring MVC application. It delegates to HandlerMappings to find the right controller method for the request, invokes it (via a HandlerAdapter), passes the result to the appropriate view resolution or message conversion, and writes the final response — centralizing request routing so individual controllers never deal with raw servlet plumbing.
Intermediate5 min

