Spring cloud config server. Environment variables in properties
I configured Spring Cloud Config server like this: @SpringBootApplication @EnableAutoConfiguration @EnableConfigServer public class ConfigServer { public static void main(String[] args) { SpringApplication.run(ConfigServer.class, args); } } I'm using 'native' profile so properties are picked up from the file system: server.port=8888 spring.profiles.active=native spring.cloud.config.server.native.search-locations: classpath:/global Now the tricky part is that some properties contain environmental variables . Properties in 'global/application-production.properties' are configured like this: test