## 接口的使用
org.springframework.validation.BindingResult

- 使用BindingResult的程序包
  程序包 | 说明
  --- | ---
  org.springframework.validation | Provides data binding and validation functionality, for usage in business and/or UI layers.
  org.springframework.validation.beanvalidation | Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.

- - ### org.springframework.validation中BindingResult的使用

    实现BindingResult的org.springframework.validation中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AbstractBindingResult` Abstract implementation of the `BindingResult` interface and its super-interface `Errors`.
    `class` | `AbstractPropertyBindingResult` Abstract base class for `BindingResult` implementations that work with Spring's `PropertyAccessor` mechanism.
    `class` | `BeanPropertyBindingResult` Default implementation of the `Errors` and `BindingResult` interfaces, for the registration and evaluation of binding errors on JavaBean objects.
    `class` | `BindException` Thrown when binding errors are considered fatal.
    `class` | `DirectFieldBindingResult` Special implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects.
    `class` | `MapBindingResult` Map-based implementation of the BindingResult interface, supporting registration and evaluation of binding errors on Map attributes.

    返回BindingResult的org.springframework.validation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `BindingResult` | BindException.`getBindingResult()` Return the BindingResult that this BindException wraps.
    `BindingResult` | DataBinder.`getBindingResult()` Return the BindingResult instance created by this DataBinder.
    `static BindingResult` | BindingResultUtils.`getBindingResult(Map<?,?> model, String name)` Find the BindingResult for the given name in the given model.
    `static BindingResult` | BindingResultUtils.`getRequiredBindingResult(Map<?,?> model, String name)` Find a required BindingResult for the given name in the given model.

    参数类型为BindingResult的org.springframework.validation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | BindingErrorProcessor.`processMissingFieldError(String missingField, BindingResult bindingResult)` Apply the missing field error to the given BindException.
    `void` | DefaultBindingErrorProcessor.`processMissingFieldError(String missingField, BindingResult bindingResult)`
    `void` | BindingErrorProcessor.`processPropertyAccessException(org.springframework.beans.PropertyAccessException ex, BindingResult bindingResult)` Translate the given `PropertyAccessException` to an appropriate error registered on the given `Errors` instance.
    `void` | DefaultBindingErrorProcessor.`processPropertyAccessException(org.springframework.beans.PropertyAccessException ex, BindingResult bindingResult)`

    参数类型为BindingResult的org.springframework.validation中的构造器
    构造器和说明
    `BindException(BindingResult bindingResult)` Create a new BindException instance for a BindingResult.

  - ### org.springframework.validation.beanvalidation中BindingResult的使用

    参数类型为BindingResult的org.springframework.validation.beanvalidation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected Object` | SpringValidatorAdapter.`getRejectedValue(String field, ConstraintViolation<Object> violation, BindingResult bindingResult)` Extract the rejected value behind the given constraint violation, for exposure through the Spring errors representation.