@Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface RequestBody
HttpMessageConverter
to resolve the
method argument depending on the content type of the request. Optionally, automatic
validation can be applied by annotating the argument with @Valid
.
Supported for annotated handler methods in Servlet environments.
RequestHeader
,
ResponseBody
,
RequestMappingHandlerAdapter
Modifier and Type | Optional Element and Description |
---|---|
boolean |
required
Whether body content is required.
|