未验证 提交 e04ca3d6 编写于 作者: S Sviatoslav Hryb 提交者: GitHub

Improve RequestPartMethodArgumentResolver Javadoc

Closes gh-27043
上级 2fc47d87
...@@ -58,8 +58,9 @@ import org.springframework.web.multipart.support.RequestPartServletServerHttpReq ...@@ -58,8 +58,9 @@ import org.springframework.web.multipart.support.RequestPartServletServerHttpReq
* it is derived from the name of the method argument. * it is derived from the name of the method argument.
* *
* <p>Automatic validation may be applied if the argument is annotated with * <p>Automatic validation may be applied if the argument is annotated with
* {@code @javax.validation.Valid}. In case of validation failure, a {@link MethodArgumentNotValidException} * {@code @javax.validation.Valid}, Spring's {@link org.springframework.validation.annotation.Validated}
* is raised and a 400 response status code returned if * 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. * {@link org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver} is configured.
* *
* @author Rossen Stoyanchev * @author Rossen Stoyanchev
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册