mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '1.4.x' into 1.5.x
This commit is contained in:
commit
68c90b24c2
@ -666,6 +666,22 @@ with a mutable value, e.g. this will bind to the properties above
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
====
|
||||
Extra care is required when configuring lists that way as overriding will not work as you
|
||||
would expect. In the example above, when `my.servers` is redefined in several places, the
|
||||
individual elements are targeted for override, not the list. To make sure that a
|
||||
`PropertySource` with higher precedence can override the list, you need to define it as
|
||||
a single property:
|
||||
|
||||
[source,yaml,indent=0]
|
||||
----
|
||||
my:
|
||||
servers: dev.bar.com,foo.bar.com
|
||||
----
|
||||
|
||||
====
|
||||
|
||||
|
||||
|
||||
[[boot-features-external-config-exposing-yaml-to-spring]]
|
||||
|
Loading…
Reference in New Issue
Block a user