Skip to content

Glossary: Spring Boot Basics

@Valid

Placed before @RequestBody, it makes Spring check the object's constraints. Inside List<...> it checks every nested item. A bad request gets a 400 before the method runs.

Where the book teaches it

Related terms

Bean Validation@RequestBody