HandlerAdapter
Learn HandlerAdapter (DispatcherServlet, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HandlerAdapter is the strategy that knows how to actually invoke a handler of a certain type, so DispatcherServlet can stay independent of handler kinds. Main implementation : RequestMappingHandlerAdapter invokes @RequestMapping methods. Contract : supports(handler) says if it can run the handler, and handle(...) runs it and returns a ModelAndView or null.