Polish "Clarify dependency requirement for Bean Validation support"

See gh-50290
This commit is contained in:
Stéphane Nicoll
2026-05-29 11:41:59 +02:00
parent 3c5309ba71
commit 091b0f3c41
@@ -1,7 +1,7 @@
[[io.validation]]
= Validation
The method validation feature supported by Bean Validation 1.1 is automatically enabled as long as a JSR-303 implementation (such as Hibernate Validator, typically provided by adding `spring-boot-starter-validation`) is on the classpath.
The method validation feature supported by Bean Validation 1.1 is automatically enabled as long as a JSR-303 implementation (such as Hibernate Validator, typically provided by `spring-boot-starter-validation`) is on the classpath.
This lets bean methods be annotated with `jakarta.validation` constraints on their parameters and/or on their return value.
Target classes with such annotated methods need to be annotated with the javadoc:org.springframework.validation.annotation.Validated[format=annotation] annotation at the type level for their methods to be searched for inline constraint annotations.
@@ -14,4 +14,4 @@ This allows you to use xref:features/internationalization.adoc[your application'
Once the parameters have been resolved, message interpolation is completed using Bean Validation's default interpolator.
To customize the javadoc:jakarta.validation.Configuration[] used to build the javadoc:jakarta.validation.ValidatorFactory[], define a javadoc:org.springframework.boot.autoconfigure.validation.ValidationConfigurationCustomizer[] bean.
When multiple customizer beans are defined, they are called in order based on their javadoc:org.springframework.core.annotation.Order[format=annotation] annotation or javadoc:org.springframework.core.Ordered[] implementation.
When multiple customizer beans are defined, they are called in order based on their javadoc:org.springframework.core.annotation.Order[format=annotation] annotation or javadoc:org.springframework.core.Ordered[] implementation.