# Uses of Interface
org.springframework.web.servlet.HandlerMapping

Packages that use HandlerMapping
Package
Description
org.springframework.web.servlet
Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.
org.springframework.web.servlet.config.annotation
Annotation-based setup for Spring MVC.
org.springframework.web.servlet.function.support
Classes supporting the `org.springframework.web.servlet.function` package.
org.springframework.web.servlet.handler
Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.
org.springframework.web.servlet.mvc.method
Servlet-based infrastructure for handler method processing, building on the `org.springframework.web.method` package.
org.springframework.web.servlet.mvc.method.annotation
MVC infrastructure for annotation-based handler method processing, building on the `org.springframework.web.method.annotation` package.

## Uses of HandlerMapping in org.springframework.web.servlet

Methods in org.springframework.web.servlet that return types with arguments of type HandlerMapping
Modifier and Type
Method
Description
`final List<HandlerMapping>`
DispatcherServlet.`getHandlerMappings()`
Return the configured `HandlerMapping` beans that were detected by type in the `WebApplicationContext` or initialized based on the default set of strategies from DispatcherServlet.properties.

## Uses of HandlerMapping in org.springframework.web.servlet.config.annotation

Methods in org.springframework.web.servlet.config.annotation that return HandlerMapping
Modifier and Type
Method
Description
`HandlerMapping`
WebMvcConfigurationSupport.`defaultServletHandlerMapping()`
Return a handler mapping ordered at Integer.MAX_VALUE with a mapped default servlet handler.
`HandlerMapping`
WebMvcConfigurationSupport.`resourceHandlerMapping(org.springframework.web.accept.ContentNegotiationManager contentNegotiationManager, org.springframework.format.support.FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)`
Return a handler mapping ordered at Integer.MAX_VALUE-1 with mapped resource handlers.
`HandlerMapping`
WebMvcConfigurationSupport.`viewControllerHandlerMapping(org.springframework.format.support.FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)`
Return a handler mapping ordered at 1 to map URL paths directly to view names.

## Uses of HandlerMapping in org.springframework.web.servlet.function.support

Classes in org.springframework.web.servlet.function.support that implement HandlerMapping
Modifier and Type
Class
Description
`class`
`RouterFunctionMapping`
`HandlerMapping` implementation that supports `RouterFunctions`.

## Uses of HandlerMapping in org.springframework.web.servlet.handler

Subinterfaces of HandlerMapping in org.springframework.web.servlet.handler
Modifier and Type
Interface
Description
`interface`
`MatchableHandlerMapping`
Additional interface that a `HandlerMapping` can implement to expose a request matching API aligned with its internal request matching configuration and implementation.
Classes in org.springframework.web.servlet.handler that implement HandlerMapping
Modifier and Type
Class
Description
`class`
`AbstractDetectingUrlHandlerMapping`
Abstract implementation of the `HandlerMapping` interface, detecting URL mappings for handler beans through introspection of all defined beans in the application context.
`class`
`AbstractHandlerMapping`
Abstract base class for `HandlerMapping` implementations.
`class`
`AbstractHandlerMethodMapping<T>`
Abstract base class for `HandlerMapping` implementations that define a mapping between a request and a `HandlerMethod`.
`class`
`AbstractUrlHandlerMapping`
Abstract base class for URL-mapped `HandlerMapping` implementations.
`class`
`BeanNameUrlHandlerMapping`
Implementation of the `HandlerMapping` interface that maps from URLs to beans with names that start with a slash ("/"), similar to how Struts maps URLs to action names.
`class`
`SimpleUrlHandlerMapping`
Implementation of the `HandlerMapping` interface that maps from URLs to request handler beans.
Methods in org.springframework.web.servlet.handler that return types with arguments of type HandlerMapping
Modifier and Type
Method
Description
`List<HandlerMapping>`
HandlerMappingIntrospector.`getHandlerMappings()`
Return the configured or detected `HandlerMapping`s.

## Uses of HandlerMapping in org.springframework.web.servlet.mvc.method

Classes in org.springframework.web.servlet.mvc.method that implement HandlerMapping
Modifier and Type
Class
Description
`class`
`RequestMappingInfoHandlerMapping`
Abstract base class for classes for which `RequestMappingInfo` defines the mapping between a request and a handler method.

## Uses of HandlerMapping in org.springframework.web.servlet.mvc.method.annotation

Classes in org.springframework.web.servlet.mvc.method.annotation that implement HandlerMapping
Modifier and Type
Class
Description
`class`
`RequestMappingHandlerMapping`
Creates `RequestMappingInfo` instances from type-level and method-level `@RequestMapping` and `@HttpExchange` annotations in `@Controller` classes.