spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

spring.profiles.active value could not be resolved to another config key

Open nmquyet opened this issue 10 years ago • 2 comments

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}

nmquyet avatar Dec 15 '15 09:12 nmquyet

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.

philwebb avatar Dec 15 '15 09:12 philwebb

Duplicates #4422

philwebb avatar Dec 15 '15 09:12 philwebb