Spring MVC – Handler Mapping | Code Factory


Donate : Link

Medium Blog : Link

Applications : Link

This image has an empty alt attribute; its file name is image-1.png

Spring Tutorial Index Page: Link

Handler mappingHow it maps requests to controllers
BeanNameUrlHandlerMappingMaps controllers to URLs that are based on the controllers’ bean name.
SimpleUrlHandlerMappingMaps controllers to URLs using a property collection defined in the Spring application context.
ControllerClassNameHandlerMappingMaps controllers to URLs by using the controllers’ class name as the basis for the URL.
CommonsPathMapHandlerMappingMaps controllers to URLs using source-level metadata placed in the controller code. The metadata is defined using JakartaCommons Attributes.

  • Handler Classes
  1. BeanNameUrlHandlerMapping (default handler mapping)
  2. SimpleUrlHandlerMapping
  3. ControllerClassNameHandlerMapping
  4. CommonsPathMapHandlerMapping

Leave a comment