Custom HandlerMapping
Learn Custom HandlerMapping (Advanced Spring MVC, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HandlerMapping is the DispatcherServlet strategy that finds the handler (and its interceptors) for a request; the result is a HandlerExecutionChain . Defaults : RequestMappingHandlerMapping handles @RequestMapping controllers; others handle simple URL mappings, bean names and static resources. Custom : you write your own by implementing HandlerMapping or extending AbstractHandlerMapping , and register it as a bean.
More lessons in Advanced Spring MVC
- Custom HandlerAdapter
- Custom ViewResolver
- Custom Argument Resolver
- HandlerMethodArgumentResolver
- Custom Return Value Handler
- HandlerMethodReturnValueHandler
- Custom Formatter
- Custom Converter
- Custom Interceptor
- Custom Exception Resolver
- Custom Message Converter
- Custom Annotation
- Request Lifecycle Customization
- Mini Project: Asynchronous Requests: Callable, DeferredResult and Server-Sent Events