This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Cloud Config 4.1.4!spring-doc.cn

Overriding Properties Using Profiles

The final way to override properties coming from the config server is to specify them in profile specific configuration file within the client application.spring-doc.cn

For example, if you have the following configuration from the config serverspring-doc.cn

hello="Hello From Config Server!"

You can override the value of hello in the client application by setting hello in a profile specific configuration file and then enabling that profile.spring-doc.cn

application-overrides.properties
hello="Hello From Application!"

In the above example you would have to enable the overrides profile.spring-doc.cn