类 RequestMappingInfoHandlerMethodMappingNamingStrategy
java.lang.Object
cn.taketoday.web.handler.method.RequestMappingInfoHandlerMethodMappingNamingStrategy
public class RequestMappingInfoHandlerMethodMappingNamingStrategy
extends Object
implements HandlerMethodMappingNamingStrategy<RequestMappingInfo>
A
HandlerMethodMappingNamingStrategy
for RequestMappingInfo-based handler method mappings.
If the RequestMappingInfo name attribute is set, its value is used.
Otherwise the name is based on the capital letters of the class name,
followed by "#" as a separator, and the method name. For example "TC#getFoo"
for a class named TestController with method getFoo.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getName(HandlerMethod handlerMethod, RequestMappingInfo mapping) Determine the name for the given HandlerMethod and mapping.
-
字段详细资料
-
SEPARATOR
Separator between the type and method-level parts of a HandlerMethod mapping name.- 另请参阅:
-
-
构造器详细资料
-
RequestMappingInfoHandlerMethodMappingNamingStrategy
public RequestMappingInfoHandlerMethodMappingNamingStrategy()
-
-
方法详细资料
-
getName
从接口复制的说明:HandlerMethodMappingNamingStrategyDetermine the name for the given HandlerMethod and mapping.- 指定者:
getName在接口中HandlerMethodMappingNamingStrategy<RequestMappingInfo>- 参数:
handlerMethod- the handler methodmapping- the mapping- 返回:
- the name
-