Update documentation for Map arguments

Issue: SPR-12347
This commit is contained in:
Rossen Stoyanchev
2014-10-21 12:13:54 -04:00
parent 4412bc68aa
commit df090235bb
4 changed files with 31 additions and 3 deletions

View File

@@ -30829,6 +30829,7 @@ multiple requests are allowed to access a session concurrently.
<<mvc-ann-requestparam>>.
* `@RequestHeader` annotated parameters for access to specific Servlet request HTTP
headers. Parameter values are converted to the declared method argument type.
See <<mvc-ann-requestheader>>.
* `@RequestBody` annotated parameters for access to the HTTP request body. Parameter
values are converted to the declared method argument type using
++HttpMessageConverter++s. See <<mvc-ann-requestbody>>.
@@ -30968,6 +30969,10 @@ parameter is optional by setting ++@RequestParam++'s `required` attribute to `fa
Type conversion is applied automatically if the target method parameter type is not
`String`. See <<mvc-ann-typeconversion>>.
When an `@RequestParam` annotation is used on a `Map<String, String>` or
`MultiValueMap<String, String>` argument, the map is populated with all request
parameters.
[[mvc-ann-requestbody]]
===== Mapping the request body with the @RequestBody annotation
@@ -31471,6 +31476,11 @@ The following code sample demonstrates how to get the value of the `Accept-Encod
Type conversion is applied automatically if the method parameter is not `String`. See
<<mvc-ann-typeconversion>>.
When an `@RequestHeader` annotation is used on a `Map<String, String>`,
`MultiValueMap<String, String>`, or `HttpHeaders` argument, the map is populated
with all header values.
[TIP]
====
Built-in support is available for converting a comma-separated string into an