Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
5f5e7e50
Commit
5f5e7e50
authored
Nov 14, 2017
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update list overriding documentation
Closes gh-11012
parent
88366b75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+4
-16
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
5f5e7e50
...
...
@@ -723,22 +723,10 @@ previously:
[NOTE]
====
Extra care is required when configuring lists as shown in the preceding example, as
overriding does not work as you might expect. In the preceding example, when `my.servers`
is redefined in several places, the individual elements are targeted for overriding, but
the list itself is not targeted for overriding. To make sure that a `PropertySource` with
higher precedence can override the list, you need to define it as a single property, as
shown in the following example:
[source,yaml,indent=0]
----
my:
servers: dev.bar.com,foo.bar.com
----
====
When lists are configured in more than one place, overriding works by replacing the entire list.
In the preceding example, when `my.servers` is redefined in several places, the entire list from
the `PropertySource` with higher precedence will override any other configuration for that list.
Both comma-separated lists and yaml lists can be used for completely overriding the contents of the list.
[[boot-features-external-config-exposing-yaml-to-spring]]
==== Exposing YAML as Properties in the Spring Environment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment