diff --git a/src/docs/asciidoc/core/core-validation.adoc b/src/docs/asciidoc/core/core-validation.adoc index d597322c95..ada8d5643d 100644 --- a/src/docs/asciidoc/core/core-validation.adoc +++ b/src/docs/asciidoc/core/core-validation.adoc @@ -1619,11 +1619,9 @@ the Spring Validation API, as the following example shows: Each bean validation constraint consists of two parts: -* A `@Constraint` annotation -that declares the constraint and its configurable properties. -* An implementation -of the `javax.validation.ConstraintValidator` interface that implements the constraint's -behavior. +* A `@Constraint` annotation that declares the constraint and its configurable properties. +* An implementation of the `javax.validation.ConstraintValidator` interface that implements +the constraint's behavior. To associate a declaration with an implementation, each `@Constraint` annotation references a corresponding `ConstraintValidator` implementation class. At runtime, a diff --git a/src/docs/asciidoc/web/webmvc.adoc b/src/docs/asciidoc/web/webmvc.adoc index 44345bcdd9..506177fcb6 100644 --- a/src/docs/asciidoc/web/webmvc.adoc +++ b/src/docs/asciidoc/web/webmvc.adoc @@ -4251,7 +4251,7 @@ FormatterRegistrar implementations. By default, if <> is present on the classpath (for example, Hibernate Validator), the `LocalValidatorFactoryBean` is registered as a global <> for use with `@Valid` and -`Validated` on controller method arguments. +`@Validated` on `@Controller` method arguments. In Java configuration, you can customize the global `Validator` instance, as the following example shows: