接口的使用
org.springframework.web.servlet.HandlerMapping
使用HandlerMapping的程序包 程序包 说明 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 theorg.springframework.web.servlet.functionpackage.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 theorg.springframework.web.methodpackage.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotationpackage.org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.web.socket.server.support Server-side support classes including container-specific strategies for upgrading a request.org.springframework.web.servlet中HandlerMapping的使用
返回变量类型为HandlerMapping的类型的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 List<HandlerMapping>DispatcherServlet. getHandlerMappings()Return the configuredHandlerMappingbeans that were detected by type in theWebApplicationContextor initialized based on the default set of strategies from DispatcherServlet.properties.org.springframework.web.servlet.config.annotation中HandlerMapping的使用
返回HandlerMapping的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 HandlerMappingWebMvcConfigurationSupport. defaultServletHandlerMapping()Return a handler mapping ordered at Integer.MAX_VALUE with a mapped default servlet handler.HandlerMappingWebMvcConfigurationSupport. resourceHandlerMapping(UrlPathHelper urlPathHelper, PathMatcher pathMatcher, ContentNegotiationManager contentNegotiationManager, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return a handler mapping ordered at Integer.MAX_VALUE-1 with mapped resource handlers.HandlerMappingWebMvcConfigurationSupport. viewControllerHandlerMapping(PathMatcher pathMatcher, UrlPathHelper urlPathHelper, FormattingConversionService conversionService, ResourceUrlProvider resourceUrlProvider)Return a handler mapping ordered at 1 to map URL paths directly to view names.org.springframework.web.servlet.function.support中HandlerMapping的使用
实现HandlerMapping的org.springframework.web.servlet.function.support中的类 修饰符和类型 类 说明 classRouterFunctionMappingHandlerMappingimplementation that supportsRouterFunctions.org.springframework.web.servlet.handler中HandlerMapping的使用
org.springframework.web.servlet.handler中HandlerMapping的子接口 修饰符和类型 接口 说明 interfaceMatchableHandlerMappingAdditional interface that aHandlerMappingcan implement to expose a request matching API aligned with its internal request matching configuration and implementation.实现HandlerMapping的org.springframework.web.servlet.handler中的类 修饰符和类型 类 说明 classAbstractDetectingUrlHandlerMappingAbstract implementation of theHandlerMappinginterface, detecting URL mappings for handler beans through introspection of all defined beans in the application context.classAbstractHandlerMappingAbstract base class forHandlerMappingimplementations.classAbstractHandlerMethodMapping<T>Abstract base class forHandlerMappingimplementations that define a mapping between a request and aHandlerMethod.classAbstractUrlHandlerMappingAbstract base class for URL-mappedHandlerMappingimplementations.classBeanNameUrlHandlerMappingImplementation of theHandlerMappinginterface that maps from URLs to beans with names that start with a slash ("/"), similar to how Struts maps URLs to action names.classSimpleUrlHandlerMappingImplementation of theHandlerMappinginterface that maps from URLs to request handler beans.返回变量类型为HandlerMapping的类型的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 List<HandlerMapping>HandlerMappingIntrospector. getHandlerMappings()Return the configured HandlerMapping's.org.springframework.web.servlet.mvc.method中HandlerMapping的使用
实现HandlerMapping的org.springframework.web.servlet.mvc.method中的类 修饰符和类型 类 说明 classRequestMappingInfoHandlerMappingAbstract base class for classes for whichRequestMappingInfodefines the mapping between a request and a handler method.org.springframework.web.servlet.mvc.method.annotation中HandlerMapping的使用
实现HandlerMapping的org.springframework.web.servlet.mvc.method.annotation中的类 修饰符和类型 类 说明 classRequestMappingHandlerMappingCreatesRequestMappingInfoinstances from type and method-level@RequestMappingannotations in@Controllerclasses.org.springframework.web.socket.config.annotation中HandlerMapping的使用
返回HandlerMapping的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 HandlerMappingWebSocketMessageBrokerConfigurationSupport. stompWebSocketHandlerMapping()HandlerMappingWebSocketConfigurationSupport. webSocketHandlerMapping()org.springframework.web.socket.server.support中HandlerMapping的使用
实现HandlerMapping的org.springframework.web.socket.server.support中的类 修饰符和类型 类 说明 classWebSocketHandlerMappingAn extension ofSimpleUrlHandlerMappingthat is also aSmartLifecyclecontainer and propagates start and stop calls to any handlers that implementLifecycle.