Spring Boot Validation Sample

This is a very simple Spring Boot (gradle) project that is using

This samples shows how to use annotation type mapping to add a custom bean validation annotations.

Running with gradle

Clone the project from GitHub, navigate into the project root folder samples/spring-validation and run

 ../../gradlew bootRun

to start the sample application.

Sample Endpoints

the sample has two simple endpoints described with OpenAPI in src/api. With IDEA you can call the endpoints by running the requests from the requests.http file.