Polish "Use MessageSource to interpolate bean validation messages"

See gh-17530
This commit is contained in:
Andy Wilkinson
2021-07-21 13:40:15 +01:00
parent bbb8367afb
commit 621844abda
13 changed files with 294 additions and 305 deletions

View File

@@ -10,3 +10,7 @@ For instance, the following service triggers the validation of the first argumen
----
include::{docs-java}/features/validation/MyBean.java[]
----
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.