Spring boot provides solid configuration support and it has an ability to customize the external configuration loading sequence by controlling the spring profiles, explicitly by specifying loading sequence in system property spring.config.location
However I want to not override my application launchers everytime in dev/prod. I want to be able to have fixed loading sequence based on my requirement.
For example
config/
├── common.yml
├── env-common.yml
├── env-${dc}.yml
├── deployment-${deployment}-common.yml
├── deployment-${deployment}-${dc}.yml
├── foo-${foo}-common.yml
├── foo-${foo}-${dc}.yml
├── bar-${bar}-common.yml
├── bar-${bar}-${dc}.yml
I can achieve this loading sequence by controlling spring profiles, but is there a way I can hardcode this loading sequence inside my app ?