# 程序包的使用
org.springframework.validation

- 使用org.springframework.validation的程序包
  程序包 | 说明
  --- | ---
  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使用的org.springframework.validation中的类
  类和说明
  AbstractBindingResult Abstract implementation of the `BindingResult` interface and its super-interface `Errors`.
  AbstractErrors Abstract implementation of the `Errors` interface.
  AbstractPropertyBindingResult Abstract base class for `BindingResult` implementations that work with Spring's `PropertyAccessor` mechanism.
  BindException Thrown when binding errors are considered fatal.
  BindingErrorProcessor Strategy for processing `DataBinder`'s missing field errors, and for translating a `PropertyAccessException` to a `FieldError`.
  BindingResult General interface that represents binding results.
  DefaultMessageCodesResolver.Format Common message code formats.
  Errors Stores and exposes information about data-binding and validation errors for a specific object.
  FieldError Encapsulates a field error, that is, a reason for rejecting a specific field value.
  MessageCodeFormatter A strategy interface for formatting message codes.
  MessageCodesResolver Strategy interface for building message codes from validation error codes.
  ObjectError Encapsulates an object error, that is, a global reason for rejecting an object.
  Validator A validator for application-specific objects.

- org.springframework.validation.beanvalidation使用的org.springframework.validation中的类
  类和说明
  BindingResult General interface that represents binding results.
  Errors Stores and exposes information about data-binding and validation errors for a specific object.
  SmartValidator Extended variant of the `Validator` interface, adding support for validation 'hints'.
  Validator A validator for application-specific objects.