From 2516dc033f909281702dfd2f99e8d0f05d59af8b Mon Sep 17 00:00:00 2001 From: Tommy Ludwig Date: Wed, 28 Oct 2015 19:29:54 +0900 Subject: [PATCH] Fix documentation example Previously, the nested private static class would cause an error at startup stating that it was not accessible when trying to bind the property from the environment. The nested class should be public. Closes gh-4323 --- spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8a10800bc0f..33ac70dbaed 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -813,7 +813,7 @@ as `@Valid` to trigger its validation. For example, building upon the above // ... getters and setters - private static class RemoteAddress { + public static class RemoteAddress { @NotEmpty public String hostname;