When defining a property in application.properties
such as
deployment=dev
spring.profiles.active=${deployment}
Spring is unable to resolve the deployment
property correctly.
Main : The following profiles are active: ${deployment}
Instead, I have to specify a default in each instance of the variable, such as
deployment=dev
spring.profiles.active=${deployment:dev}
However, when I override the property through one of the various ways (environment variable, system property, etc), the set value is correctly resolved everywhere. Is there a way to define a default in the application.properties
file?