接口的使用
org.springframework.web.servlet.handler.MatchableHandlerMapping
使用MatchableHandlerMapping的程序包 程序包 说明 org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.socket.server.support Server-side support classes including container-specific strategies for upgrading a request.org.springframework.web.servlet.handler中MatchableHandlerMapping的使用
实现MatchableHandlerMapping的org.springframework.web.servlet.handler中的类 修饰符和类型 类 说明 class
AbstractDetectingUrlHandlerMapping
Abstract implementation of theHandlerMapping
interface, detecting URL mappings for handler beans through introspection of all defined beans in the application context.class
AbstractUrlHandlerMapping
Abstract base class for URL-mappedHandlerMapping
implementations.class
BeanNameUrlHandlerMapping
Implementation of theHandlerMapping
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 theHandlerMapping
interface that maps from URLs to request handler beans.返回MatchableHandlerMapping的org.springframework.web.servlet.handler中的方法 修饰符和类型 方法 说明 MatchableHandlerMapping
HandlerMappingIntrospector. getMatchableHandlerMapping(HttpServletRequest request)
Find theHandlerMapping
that would handle the given request and return it as aMatchableHandlerMapping
that can be used to test request-matching criteria.org.springframework.web.servlet.mvc.method.annotation中MatchableHandlerMapping的使用
实现MatchableHandlerMapping的org.springframework.web.servlet.mvc.method.annotation中的类 修饰符和类型 类 说明 class
RequestMappingHandlerMapping
CreatesRequestMappingInfo
instances from type and method-level@RequestMapping
annotations in@Controller
classes.org.springframework.web.socket.server.support中MatchableHandlerMapping的使用
实现MatchableHandlerMapping的org.springframework.web.socket.server.support中的类 修饰符和类型 类 说明 class
WebSocketHandlerMapping
An extension ofSimpleUrlHandlerMapping
that is also aSmartLifecycle
container and propagates start and stop calls to any handlers that implementLifecycle
.