From 5a941bb5a5b0e13dc7df52b6a6b2e4cd3f2d5818 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 14 Jul 2016 10:00:51 +0200 Subject: [PATCH] Polish doc See gh-4313 --- .../main/asciidoc/spring-boot-features.adoc | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 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 a6a783a3403..89a62459b7e 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -747,8 +747,26 @@ configuration _will not_ add a second `MyPojo` instance to the list, and it won' the items. When a collection is specified in multiples profiles, the one with highest priority is -used (and only that one). Similarly, do not expect the list to shrink if a -profile-specific property source has one entry while the standard one defines two. +used (and only that one): + +[source,yaml,indent=0] +---- + foo: + list: + - name: my name + description: my description + - name: another name + description: another description + --- + spring: + profiles: dev + foo: + list: + - name: my another name +---- + +In the example above, considering that the `dev` profile is active, `FooProperties.list` +will contain _one_ `MyPojo` entry (with name "`my another name`" and description `null`).