spring-boot
spring-boot copied to clipboard
spring.profiles.active value could not be resolved to another config key
I want to config spring active profile by using other config key but it did not work.
microservice.environment=${env:local}
spring.profiles.active=${microservice.environment}
The debug log say that my active profile is ${microservice.environment}
This is a known limitation of the processing logic. It's not possible for us to refer to a property in the same file because it's not get been processed when the property is parsed.
Duplicates #4422