SPRING CONCEPTS
MVC mapping and view resolution
Spring Concepts / MVC mapping and view resolution
Spring MVC locates a handler, invokes it and processes its result.
Understand the idea
A HandlerMapping finds a handler for the request. A HandlerAdapter invokes it using the relevant programming model. A view-producing controller returns a view name with model data. The configured view and template infrastructure renders the HTML response.
A concrete example
GET /products
→ mapping → adapter → controller
→ view resolution → Thymeleaf → HTMLIn the application
See the independently runnable examples in Stage 27.
You use this infrastructure without implementing the DispatcherServlet yourself.