Improve RequestPartMethodArgumentResolver Javadoc

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

View File

@ -58,8 +58,9 @@ import org.springframework.web.multipart.support.RequestPartServletServerHttpReq
* it is derived from the name of the method argument.
*
* <p>Automatic validation may be applied if the argument is annotated with
* {@code @javax.validation.Valid}. In case of validation failure, a {@link MethodArgumentNotValidException}
* is raised and a 400 response status code returned if
* {@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,
* a {@link MethodArgumentNotValidException} is raised and a 400 response status code returned if
* {@link org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver} is configured.
*
* @author Rossen Stoyanchev