java303In this article, we'll explore practical examples of how to apply JSR-303 annotations to your domain objects from basic annotations to advanced. So basically annotations provide a declarative way to confure Spring beans,JSR303 . 1. !----> dependency> groupId>javax.validationgroupId> artifactId>validation-apiartifactId> version>2.0.1.Final