The strategy can be configured on {@link org.springframework.web.servlet.handler.AbstractHandlerMethodMapping AbstractHandlerMethodMapping}. It is used to assign a name to the mapping of every registered handler method. The names can then be queried via {@link org.springframework.web.servlet.handler.AbstractHandlerMethodMapping#getHandlerMethodsForMappingName(String) AbstractHandlerMethodMapping#getHandlerMethodsForMappingName}.
Applications can build a URL to a controller method by name with the help of the static method {@link org.springframework.web.servlet.mvc.method.annotation.MvcUriComponentsBuilder#fromMappingName(String) MvcUriComponentsBuilder#fromMappingName} or in JSPs through the "mvcUrl"function registered by the Spring tag library. @author Rossen Stoyanchev @since 4.1
|
|
|
|