Browse Source
Restore the previous `spring.profiles.active` logic effectively
reverting commit 37069d9. This ensures that active profiles defined in
a higher `PropertySource` replace those lower down.
In addition, add support for a `+` prefix that can be used to indicate
that a profile should be added to the active set.
For example:
# application-prod.properties
spring.profiles.active=+proddb,+prodmq
Fixed gh-308, gh-309
pull/313/head
8 changed files with 58 additions and 17 deletions
@ -1 +1 @@
@@ -1 +1 @@
|
||||
spring.profiles.active=specific |
||||
spring.profiles.active=+specific |
||||
|
||||
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
spring.profiles.active=+yetmorespecific,missing |
||||
@ -0,0 +1 @@
@@ -0,0 +1 @@
|
||||
spring.profiles.active=+morespecific |
||||
Loading…
Reference in new issue