-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Labels
for: stackoverflowA question that's better suited to stackoverflow.comA question that's better suited to stackoverflow.com
Description
Spring-Boot Version: 2.4.0
When migrate from spring.profiles.include to spring.profiles.group, Spring-Boot no longer load sub yml
configs from the classpath.
application.yml
spring:
profiles:
group:
- base-db
- base-quartz
- base-app
application-test.yml
spring:
profiles:
group:
- test-db
- test-quartz
- test-app
log shows Spring-Boot only load application.yml
and application-test.yml
, but no base-db
, base-quartz
, base-app
,test-db
, test-quartz
, test-app
:
2020-12-02 13:22:07.463 TRACE [main] org.springframework.boot.context.config.ConfigDataEnvironment Adding imported property source 'Config resource 'classpath:/application-test.yml' via location 'optional:classpath:/''
2020-12-02 13:22:07.463 TRACE [main] org.springframework.boot.context.config.ConfigDataEnvironment Adding imported property source 'Config resource 'classpath:/application.yml' via location 'optional:classpath:/''
If run with --spring.profiles.active=test
, Spring-Boot should also load base-db
, base-quartz
, base-app
,test-db
, test-quartz
, test-app
too, am i right?
Metadata
Metadata
Assignees
Labels
for: stackoverflowA question that's better suited to stackoverflow.comA question that's better suited to stackoverflow.com