Skip to content

Commit e04ca3d

Browse files
authored
Improve RequestPartMethodArgumentResolver Javadoc
Closes gh-27043
1 parent 2fc47d8 commit e04ca3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@
5858
* it is derived from the name of the method argument.
5959
*
6060
* <p>Automatic validation may be applied if the argument is annotated with
61-
* {@code @javax.validation.Valid}. In case of validation failure, a {@link MethodArgumentNotValidException}
62-
* is raised and a 400 response status code returned if
61+
* {@code @javax.validation.Valid}, Spring's {@link org.springframework.validation.annotation.Validated}
62+
* or custom annotations whose name starts with "Valid". In case of validation failure,
63+
* a {@link MethodArgumentNotValidException} is raised and a 400 response status code returned if
6364
* {@link org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver} is configured.
6465
*
6566
* @author Rossen Stoyanchev

0 commit comments

Comments
 (0)