Spring
MVC use controller pattern to serve the requests. DispatcherServlet acts as a
front controller, it receives all the requests, and pass the requests to
correspondent handlers with the help of handler mappings.
'org.springframework.web.servlet.HandlerMapping'
interface is responsible for maping the requests to handlers. Spring provides
concrete implementation to this interface, you can choose one of them based on
your interest.
At
the time of writing this post, below are the concrete implementations of the
HandlerMapping interface.
a. BeanNameUrlHandlerMapping,
b. RequestMappingHandlerMapping,
c. RequestMappingInfoHandlerMapping,
d. SimpleUrlHandlerMapping,
e. WebSocketHandlerMapping
My
next posts will explain all these mappers in detail.
No comments:
Post a Comment