类的使用
org.springframework.validation.BindException
使用BindException的程序包 程序包 说明 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 theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.mvc.support Support package for MVC controllers.org.springframework.validation中BindException的使用
抛出BindException的org.springframework.validation中的方法 修饰符和类型 方法 说明 Map<?,?>
DataBinder. close()
Close this DataBinder, which may result in throwing a BindException if it encountered any errors.org.springframework.web.bind.support中BindException的使用
抛出BindException的org.springframework.web.bind.support中的方法 修饰符和类型 方法 说明 void
WebRequestDataBinder. closeNoCatch()
Treats errors as fatal.org.springframework.web.servlet.mvc.method.annotation中BindException的使用
参数类型为BindException的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 protected ResponseEntity<Object>
ResponseEntityExceptionHandler. handleBindException(BindException ex, HttpHeaders headers, HttpStatus status, WebRequest request)
Customize the response for BindException.org.springframework.web.servlet.mvc.support中BindException的使用
参数类型为BindException的org.springframework.web.servlet.mvc.support中的方法 修饰符和类型 方法 说明 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 typeBindingResult
.