Improve RequestResponseBodyMethodProcessor Javadoc

Closes gh-27042
This commit is contained in:
Sviatoslav Hryb 2021-06-15 18:04:18 +03:00 committed by GitHub
parent 3676084472
commit 2fc47d8752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ import org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolv
* to the body of the request or response with an {@link HttpMessageConverter}.
*
* <p>An {@code @RequestBody} method argument is also validated if it is annotated
* with {@code @javax.validation.Valid}. In case of validation failure,
* with {@code @javax.validation.Valid}, Spring's {@link org.springframework.validation.annotation.Validated}
* or custom annotations whose name starts with "Valid". In case of validation failure,
* {@link MethodArgumentNotValidException} is raised and results in an HTTP 400
* response status code if {@link DefaultHandlerExceptionResolver} is configured.
*