|
|
|
|
@ -32906,7 +32906,7 @@ For example given:
@@ -32906,7 +32906,7 @@ For example given:
|
|
|
|
|
[subs="verbatim,quotes"] |
|
|
|
|
---- |
|
|
|
|
@RequestMapping("/people/{id}/addresses") |
|
|
|
|
public class MyController { |
|
|
|
|
public class PersonAddressController { |
|
|
|
|
|
|
|
|
|
@RequestMapping("/{country}") |
|
|
|
|
public HttpEntity getAddress(@PathVariable String country) { ... } |
|
|
|
|
@ -32920,7 +32920,7 @@ The following JSP code can prepare a link:
@@ -32920,7 +32920,7 @@ The following JSP code can prepare a link:
|
|
|
|
|
---- |
|
|
|
|
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %> |
|
|
|
|
... |
|
|
|
|
<a href="${s:mvcUrl(''PC#getPerson'').arg(0,''US'').buildAndExpand(''123'')}">Get Person</a> |
|
|
|
|
<a href="${s:mvcUrl(''PAC#getAddress'').arg(0,''US'').buildAndExpand(''123'')}">Get Address</a> |
|
|
|
|
---- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|