Skip to content

Commit 12526b8

Browse files
authored
Set spring.profiles.active instead of spring.profiles.default (#926)
Even though logs show that spring.profiles.default *is* used as fallback, and @Profile(Profiles.PRODUCTION) classes *are* enabled, apparently the default profile is not picked up everywhere. Most likely cause is that some third party code is relying on Environment.getActiveProfiles(), which returns empty when the default profile is used. To fix this we set spring.profiles.active explicitly, instead of spring.profiles.default.
1 parent 252a976 commit 12526b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spring:
1616
default-page-size: 50
1717
qualifier-delimiter: _
1818
profiles:
19-
default: production
19+
active: production
2020
task:
2121
execution:
2222
pool:

0 commit comments

Comments
 (0)