Polish "Provide callback mechanism for customizing validation configuration"

See gh-29429
This commit is contained in:
Andy Wilkinson
2022-05-04 11:36:43 +01:00
parent 76a1c6bcaa
commit 0e00fafe38
6 changed files with 50 additions and 134 deletions

View File

@@ -11,3 +11,6 @@ include::code:MyBean[]
The application's `MessageSource` is used when resolving `+{parameters}+` in constraint messages.
This allows you to use <<features.adoc#features.internationalization,your application's `messages.properties` files>> for Bean Validation messages.
Once the parameters have been resolved, message interpolation is completed using Bean Validation's default interpolator.
To customize the `Configuration` used to build the `ValidatorFactory`, define a `ValidationConfigurationCustomizer` bean.
When multiple customizer beans are defined, they are called in order based on their `@Order` annotation or `Ordered` implementation.