Skip to content

Commit 68c90b2

Browse files
committed
Merge branch '1.4.x' into 1.5.x
2 parents 715cf7d + 40f4c89 commit 68c90b2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,22 @@ with a mutable value, e.g. this will bind to the properties above
666666
}
667667
----
668668

669+
[NOTE]
670+
====
671+
Extra care is required when configuring lists that way as overriding will not work as you
672+
would expect. In the example above, when `my.servers` is redefined in several places, the
673+
individual elements are targeted for override, not the list. To make sure that a
674+
`PropertySource` with higher precedence can override the list, you need to define it as
675+
a single property:
676+
677+
[source,yaml,indent=0]
678+
----
679+
my:
680+
servers: dev.bar.com,foo.bar.com
681+
----
682+
683+
====
684+
669685

670686

671687
[[boot-features-external-config-exposing-yaml-to-spring]]

0 commit comments

Comments
 (0)