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
Return an empty map when there are no path variables, rather than
raising an exception. This is consistent with similar resolvers for
extracting headers and request parameters.
Issue: SPR-9289
Copy file name to clipboardExpand all lines: spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolver.java
Copy file name to clipboardExpand all lines: spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolverTests.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
importstaticorg.junit.Assert.assertTrue;
22
22
23
23
importjava.lang.reflect.Method;
24
+
importjava.util.Collections;
24
25
importjava.util.HashMap;
25
26
importjava.util.Map;
26
27
@@ -89,9 +90,12 @@ public void resolveArgument() throws Exception {
0 commit comments