This project demonstrates some API validation patterns for Spring Boot Web Applications.
This project accompanies my blog post: Validating Requests in Spring Boot 3.
It supersedes and builds on Validating Requests in Spring Boot which was written for Spring Boot 2.
If you are looking for a reference for validation in Spring Boot 2, please check out the release/spring-boot-2
branch of this repo.
The sample application is built with Gradle and uses the Gradle Wrapper to ensure a consistent build environment. Build the Spring Boot application with the following command:
./gradlew clean build
- Java 21
- JUnit 5
- Spring Boot 3
- Hibernate Validator 8
- Gradle 8.5