Package | Description |
---|---|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
org.springframework.web.bind |
Provides web-specific data binding functionality.
|
org.springframework.web.bind.support |
Support classes for web data binding.
|
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
org.springframework.web.servlet.mvc.support |
Support package for MVC controllers.
|
Modifier and Type | Method and Description |
---|---|
Map<?,?> |
DataBinder.close()
Close this DataBinder, which may result in throwing
a BindException if it encountered any errors.
|
Modifier and Type | Class and Description |
---|---|
class |
MethodArgumentNotValidException
Exception to be thrown when validation on an argument annotated with
@Valid fails. |
Modifier and Type | Method and Description |
---|---|
void |
WebRequestDataBinder.closeNoCatch()
Treats errors as fatal.
|
Modifier and Type | Method and Description |
---|---|
protected ResponseEntity<Object> |
ResponseEntityExceptionHandler.handleBindException(BindException ex,
HttpHeaders headers,
HttpStatus status,
WebRequest request)
Customize the response for BindException.
|
Modifier and Type | Method and Description |
---|---|
protected ModelAndView |
DefaultHandlerExceptionResolver.handleBindException(BindException ex,
HttpServletRequest request,
HttpServletResponse response,
Object handler)
Handle the case where an @ModelAttribute method
argument has binding or validation errors and is not followed by another
method argument of type
BindingResult . |