From 4c1d2277764d15471ae800c797e44764232568e9 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 12 Feb 2020 15:47:17 +0100 Subject: [PATCH] Polish documentation format Closes gh-24462 --- src/docs/asciidoc/core/core-validation.adoc | 8 +++----- src/docs/asciidoc/web/webmvc.adoc | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) 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: