Package org.springframework.web.servlet.handler
@NullMarked
package org.springframework.web.servlet.handler
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
-
ClassDescriptionAbstract implementation of the
HandlerMappinginterface, detecting URL mappings for handler beans through introspection of all defined beans in the application context.Abstract base class forHandlerExceptionResolverimplementations.Abstract base class forHandlerMappingimplementations.Abstract base class forHandlerExceptionResolverimplementations that support handling exceptions from handlers of typeHandlerMethod.Abstract base class forHandlerMappingimplementations that define a mapping between a request and aHandlerMethod.Abstract base class for URL-mappedHandlerMappingimplementations.Implementation of theHandlerMappinginterface that maps from URLs to beans with names that start with a slash ("/"), similar to how Struts maps URLs to action names.Interceptor that places the configuredConversionServicein request scope so it's available during request processing.ServletWebRequestsubclass that is aware ofDispatcherServlet's request context, such as the Locale determined by the configuredLocaleResolver.AHandlerExceptionResolverthat delegates to a list of otherHandlerExceptionResolvers.Deprecated, for removal: This API element is subject to removal in a future version.Container for aMatchableHandlerMappingandCorsConfigurationfor a given request matched by dispatcher type and requestURI.A strategy for assigning a name to a handler method's mapping.Wraps aHandlerInterceptorand uses URL patterns to determine whether it applies to a given request.Deprecated, for removal: This API element is subject to removal in a future version.together withHandlerMappingIntrospectorwithout a replacement.Deprecated, for removal: This API element is subject to removal in a future version.together withHandlerMappingIntrospectorwithout a replacement.HandlerExceptionResolverimplementation that allows for mapping exception class names to view names, either for a set of given handlers or for all handlers in the DispatcherServlet.Adapter to use the Servlet interface with the generic DispatcherServlet.BeanPostProcessorthat applies initialization and destruction callbacks to beans that implement theServletinterface.Implementation of theHandlerMappinginterface that maps from URLs to request handler beans.Interceptor that checks the authorization of the current user via the user's roles, as evaluated by HttpServletRequest's isUserInRole method.Adapter that implements the Servlet HandlerInterceptor interface and wraps an underlying WebRequestInterceptor.
PathPatternParser; whenHandlerMappingIntrospector.allHandlerMappingsUsePathPatternParser()returns true, it is sufficient to use that to align with handler mappings.