Describe the lifecycle of a Spring MVC request.

The lifecycle of a Spring MVC request describes the path an HTTP request takes from arriving at the server to producing a rendered response, coordinated by DispatcherServlet as the central front controller.

Diagram: Spring MVC request flow through the DispatcherServlet
Spring MVC request flow through the DispatcherServlet

Key Points

Example

A request for /orders/42 is routed by DispatcherServlet to OrderController, which loads the order via a service, puts it on the model, and returns "orderDetail"; ViewResolver then maps that to orderDetail.jsp, which renders the final HTML sent back to the browser.

Interview Tip

A concise interview answer is

Every request enters through DispatcherServlet, which finds the matching controller via HandlerMapping. The controller processes the request, working with the model, and returns a view name. DispatcherServlet passes that to a ViewResolver to get an actual View, which renders the response — with interceptors able to hook in before and after each stage.

Last updated: 11 November 2026

Previous question: What are the core components of Spring MVC?

Next question: What role does the DispatcherServlet play in the Spring MVC request lifecycle?

More Spring MVC (Optional) interview questions

All Spring MVC (Optional) questions