Filter duplicate

Improve the initial PR to include a filtering of the profiles that were
already enabled via the `spring.profiles.active` property.

Also add more tests to prove that each profile is loaded only once
now.

Closes gh-4273
This commit is contained in:
Stephane Nicoll
2015-10-22 13:46:09 +02:00
parent 06bb6bd1e1
commit 7c1bf58262
3 changed files with 109 additions and 16 deletions

View File

@@ -369,6 +369,9 @@ Profile specific properties are loaded from the same locations as standard
ones irrespective of whether the profile-specific files are inside or outside your
packaged jar.
If several profiles are specified, a last wins strategy applies. For example, profiles
specified by the `spring.active.profiles` property are added after those configured via
the `SpringApplication` API and therefore take precedence.
[[boot-features-external-config-placeholders-in-properties]]