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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s