Support access to all URI vars via @PathVariable Map
Issue: SPR-9289
This commit is contained in:
@@ -992,6 +992,11 @@ public String findPet(<emphasis role="bold">@PathVariable</emphasis> String owne
|
||||
return "displayPet";
|
||||
}</programlisting>
|
||||
|
||||
<para>When a <interfacename>@PathVariable</interfacename> annotation is
|
||||
used on a <classname>Map<String, String></classname> argument, the
|
||||
map is populated with all URI template variables.
|
||||
</para>
|
||||
|
||||
<para>A URI template can be assembled from type and path level
|
||||
<emphasis>@RequestMapping</emphasis> annotations. As a result the
|
||||
<methodname>findPet()</methodname> method can be invoked with a URL
|
||||
|
||||
Reference in New Issue
Block a user