类 RequestMappingInfoHandlerMethodMappingNamingStrategy
- java.lang.Object
- org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMethodMappingNamingStrategy
public class RequestMappingInfoHandlerMethodMappingNamingStrategy extends Object implements HandlerMethodMappingNamingStrategy<RequestMappingInfo>
AHandlerMethodMappingNamingStrategyforRequestMappingInfo-based handler method mappings. If theRequestMappingInfoname 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.1
- 作者:
- Rossen Stoyanchev
构造器详细资料
RequestMappingInfoHandlerMethodMappingNamingStrategy
public RequestMappingInfoHandlerMethodMappingNamingStrategy()
方法详细资料
getName
public String getName(HandlerMethod handlerMethod, RequestMappingInfo mapping)
从接口复制的说明:HandlerMethodMappingNamingStrategyDetermine the name for the given HandlerMethod and mapping.- 指定者:
getName在接口中HandlerMethodMappingNamingStrategy<RequestMappingInfo>- 参数:
handlerMethod- the handler methodmapping- the mapping- 返回:
- the name