T - the mapping type@FunctionalInterface public interface HandlerMethodMappingNamingStrategy<T>
The strategy can be configured on
AbstractHandlerMethodMapping. It is used to assign a name to the mapping of
every registered handler method. The names can then be queried via
AbstractHandlerMethodMapping#getHandlerMethodsForMappingName.
Applications can build a URL to a controller method by name with the help
of the static method
MvcUriComponentsBuilder#fromMappingName or in JSPs through the "mvcUrl"
function registered by the Spring tag library.
| Modifier and Type | Method and Description |
|---|---|
String |
getName(HandlerMethod handlerMethod,
T mapping)
Determine the name for the given HandlerMethod and mapping.
|
String getName(HandlerMethod handlerMethod, T mapping)
handlerMethod - the handler methodmapping - the mapping