This example shows how to validate forms in Spring MVC using Bean Validation API using Java Annotations, without any xml. User will be proposed to input their registration data and validator will check it for validity.
Add Dependencies
First of all add the following dependencies in your project:
...