Skip to content

Glossary: Spring Boot Basics

MethodArgumentNotValidException

The exception Spring throws when @Valid finds a broken constraint. Its getBindingResult().getFieldErrors() lists each bad field and message, which ApiErrors turns into an errors map.

Where the book teaches it

Related terms

@ValidProblemDetail@ExceptionHandler