Skip to main content

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