Skip to content

KibuKuhn/spring-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot bean validation (JSR303) demo

Validate request body and parameters in one step

Ever tried to validate body and parameters of a REST call in 1 step? This does not work. Spring uses different approaches to validate body and parameters that cannot be mixed.

  • Start the app and open localhost:8080/validation to get the swagger site
  • Endpoint Old uses the standard annotations foŕ validation. Does not work
  • Endpoint New uses a new approach. Works

The endpoints just return the person from the request.

Happy testing :-)

Releases

No releases published

Packages

No packages published

Languages