You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit adds a new function to the Spring tag library for preparing
links to @controller methods. For more details see the Javadoc of
MvcUriComponentsBuilder.fromMappingName.
Issue: SPR-5779
Copy file name to clipboardExpand all lines: spring-webmvc/src/main/java/org/springframework/web/servlet/handler/HandlerMethodMappingNamingStrategy.java
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,20 @@
21
21
importjava.lang.reflect.Method;
22
22
23
23
/**
24
-
* A strategy for assigning a name to a controller method mapping.
24
+
* A strategy for assigning a name to a handler method's mapping.
Copy file name to clipboardExpand all lines: spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/MvcUriComponentsBuilder.java
+80-23Lines changed: 80 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -193,38 +193,62 @@ public static UriComponentsBuilder fromMethodCall(Object invocationInfo) {
193
193
}
194
194
195
195
/**
196
-
* Create a {@link UriComponentsBuilder} from a request mapping identified
197
-
* by name. The configured
196
+
* Create a URL from the name of a Spring MVC controller method's request mapping.
0 commit comments