Skip to main content

HandlerMapping

Learn HandlerMapping (DispatcherServlet, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes HandlerMapping is the strategy interface that maps an incoming request to a handler (usually a controller method) plus its interceptors. Main implementation : RequestMappingHandlerMapping reads @RequestMapping , @GetMapping and similar annotations. Result : it returns a HandlerExecutionChain , or null if it cannot match the request.

More lessons in DispatcherServlet