From 34891c27deb17e67023c3176985339d0556b511a Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 23 Jul 2015 11:52:51 +0200 Subject: [PATCH] Polish Closes gh-3566 --- .../src/main/asciidoc/spring-boot-features.adoc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 18c1e27a81..e61105729e 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -780,8 +780,11 @@ annotations to your `@ConfigurationProperties` class: } ---- -In order to validate values of nested properties, you must annotate the static nested -class as `@Valid`. For example, building upon the above `@ConfigurationProperties` class: + + +In order to validate values of nested properties, you must annotate the associated field +as `@Valid` to trigger its validation. For example, building upon the above +`ConnectionSettings` example: [source,java,indent=0] ---- @@ -791,11 +794,11 @@ class as `@Valid`. For example, building upon the above `@ConfigurationPropertie @NotNull @Valid - private InetAddress remoteAddress; + private RemoteAddress remoteAddress; // ... getters and setters - private static class InetAddress { + private static class RemoteAddress { @NotEmpty public String hostname;