Skip to content

marcdenning/spring-api-validation-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Spring API Validation Project

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.

Getting started

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

Technology in use

  • Java 21
  • JUnit 5
  • Spring Boot 3
  • Hibernate Validator 8
  • Gradle 8.5

About

Demonstrates API validation for Spring Boot Web Applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages