Generic JavaBeans Validation
Jump to navigation
Jump to search
External
Internal
Overview
This article documents an executable Java example that shows how to use JavaBeans Validation annotations to externalize validation logic to a JavaBeans validation provider. This example depends on Spring Boot only because we use Spring Boot's machinery to pull starter dependencies, including Hibernate Validator, which will be used as validation provider, and get our runtime running. However, there is nothing more that is Spring-specific, the validation is a generic Java concept.
dependencies {
implementation('org.springframework.boot:spring-boot-starter-validation')
}