Skip to content

Commit f9e2949

Browse files
committed
Improve Bean Validation documentation by clarifying dependency requirement
1 parent 607e4bb commit f9e2949

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/io

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/io/validation.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[io.validation]]
22
= Validation
33

4-
The method validation feature supported by Bean Validation 1.1 is automatically enabled as long as a JSR-303 implementation (such as Hibernate validator) is on the classpath.
4+
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.
55
This lets bean methods be annotated with `jakarta.validation` constraints on their parameters and/or on their return value.
66
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.
77

@@ -14,4 +14,4 @@ This allows you to use xref:features/internationalization.adoc[your application'
1414
Once the parameters have been resolved, message interpolation is completed using Bean Validation's default interpolator.
1515

1616
To customize the javadoc:jakarta.validation.Configuration[] used to build the javadoc:jakarta.validation.ValidatorFactory[], define a javadoc:org.springframework.boot.validation.autoconfigure.ValidationConfigurationCustomizer[] bean.
17-
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.
17+
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.

0 commit comments

Comments
 (0)