@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,
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter,
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
required
Whether body content is required.
|