Uses of Class
org.springframework.web.bind.MethodArgumentNotValidException
Package
Description
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Support package for MVC controllers.
-
Uses of MethodArgumentNotValidException in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected ResponseEntity<Object>
ResponseEntityExceptionHandler.handleMethodArgumentNotValid
(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatus status, WebRequest request) Customize the response for MethodArgumentNotValidException. -
Uses of MethodArgumentNotValidException in org.springframework.web.servlet.mvc.support
Modifier and TypeMethodDescriptionprotected ModelAndView
DefaultHandlerExceptionResolver.handleMethodArgumentNotValidException
(MethodArgumentNotValidException ex, HttpServletRequest request, HttpServletResponse response, Object handler) Handle the case where an argument annotated with@Valid
such as anRequestBody
orRequestPart
argument fails validation.