I have 3 yml
files namely
application-default.yml
-> default properties, should be available in all profilesapplication-dev.yml
-> properties only for dev profileapplication-prod.yml
-> properties only for prod profile
When I start my boot application by passing the -Dspring.profiles.active=dev
,I am able to access the application-dev.yml
specific properties.
But I cant get the properties defined in the application-default.yml
files.
Following is my application-dev.yml
file:
Spring:
profiles:
include: default
spring.profiles: dev
prop:
key:value