This demo spring boot project demonstrates how to do
- Use built in validation annotation in
jakarta.validation.constraintspackage - Create your own custom validation annotation and its processor
- Use result of validation in controller class
- Configure h2 database for demo purpose
- Create custom exception handler
- Implement
org.springframework.boot.CommandLineRunneras data feeder to h2 database
To connect to h2 console visit following link http://localhost:8080/h2-console