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:
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user