Close

Spring - Validation

[Last Updated: Jan 21, 2022]

Spring core framework provides two approaches to validate beans:

  • Spring specific validation mechanism by implementing spring Validator interface.
  • JSR 349/303 annotation based validations. Please check out our Java EE Bean validation tutorial if not already familiar with that.

We can also mix above two approaches. (Examples in next tutorials)

Spring provides classes to make it easy to specify i18n resource bundles.

Spring also supports method validations.

In next tutorials we will see examples of each feature.

See Also