What is Spring MVC?

Spring MVC is the web framework module within the Spring ecosystem that implements the Model-View-Controller pattern to build web applications and RESTful services.

Key Points

Example

A simple controller method annotated @GetMapping("/hello") that returns a greeting string demonstrates the core flow: DispatcherServlet routes the request to that method, the method returns data or a view name, and Spring handles turning that into an HTTP response.

Interview Tip

A concise interview answer is

Spring MVC is Spring's web framework built around the Model-View-Controller pattern. DispatcherServlet acts as a front controller that routes incoming requests to annotated controller methods, which work with the model and return a view name or data, and Spring resolves that into the actual HTTP response.

Last updated: 16 July 2026

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

More Spring MVC (Optional) interview questions

All Spring MVC (Optional) questions