Fix exception name in ModelAttribute docs

Closes gh-34980

Signed-off-by: Johannes Jank <johannes.wengert@googlemail.com>
This commit is contained in:
Johannes Jank 2025-06-02 11:46:42 +02:00 committed by Sam Brannen
parent 659472f9e3
commit 5b9cb8291e
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ Kotlin::
====== ======
If there is no `BindingResult` parameter after the `@ModelAttribute`, then If there is no `BindingResult` parameter after the `@ModelAttribute`, then
`MethodArgumentNotValueException` is raised with the validation errors. However, if method a `MethodArgumentNotValidException` is raised with the validation errors. However, if method
validation applies because other parameters have `@jakarta.validation.Constraint` annotations, validation applies because other parameters have `@jakarta.validation.Constraint` annotations,
then `HandlerMethodValidationException` is raised instead. For more details, see the section then `HandlerMethodValidationException` is raised instead. For more details, see the section
xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation]. xref:web/webmvc/mvc-controller/ann-validation.adoc[Validation].