Align cascading of config prop validation with bean validation spec

Closes gh-40345
This commit is contained in:
Andy Wilkinson
2024-06-20 12:14:41 +01:00
parent d9e9a46189
commit 7701201bc3
4 changed files with 16 additions and 18 deletions

View File

@@ -1178,7 +1178,7 @@ include-code::MyProperties[]
TIP: You can also trigger validation by annotating the `@Bean` method that creates the configuration properties with `@Validated`.
To ensure that validation is always triggered for nested properties, even when no properties are found, the associated field must be annotated with `@Valid`.
To cascade validation to nested properties the associated field must be annotated with `@Valid`.
The following example builds on the preceding `MyProperties` example:
include-code::nested/MyProperties[]