Browse Source

Improve RequestResponseBodyMethodProcessor Javadoc

Closes gh-27042
pull/27067/head
Sviatoslav Hryb 4 years ago committed by GitHub
parent
commit
2fc47d8752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessor.java

3
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessor.java

@ -51,7 +51,8 @@ import org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolv @@ -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.
*

Loading…
Cancel
Save