Package | Description |
---|---|
org.springframework.validation |
Provides data binding and validation functionality,
for usage in business and/or UI layers.
|
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 |
---|---|
java.util.Map<?,?> |
DataBinder.close()
Close this DataBinder, which may result in throwing
a BindException if it encountered any errors.
|
Modifier and Type | Method and Description |
---|---|
void |
WebRequestDataBinder.closeNoCatch()
Treats errors as fatal.
|
Modifier and Type | Method and Description |
---|---|
protected ResponseEntity<java.lang.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,
java.lang.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 . |