Spring primarily supports two types of validations:
By using JSR-303 Annotations and any reference implementation, for example, Hibernate Validator.
Implementing org.springframework.validation.Validator interface and developing customizable validations.