I'm starting to use Spring Cloud Config and would like to give a way for clients to override properties that come from cofnig server. However, after reading https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html, it isn't apparent when the Cloud Configuration applies.
I've also read http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html and it talks about overrides. But they seem to be the opposite of what I want (those overrides are for overriding the client provided properties).
So, where does the Cloud Config fit in the ordering? Would I still be able to give a local application.properties
file on the classpath to override certain Cloud Config properties?
/env
actuator endpoint. It will show you the property sources used in your application, and the ordering by which they override each other (earlier listed sources override later listed sources). In general, ConfigServer sources are very early, only behind command line -D properties in the default ordering. – nicholas.hauschild/env
in Spring Boot Actuator is ordered by configuration order? It appears to just be alphabetical ordering to me. In my example,defaultProperties
is showing afterconfigService
which isn't correct ordering. – Andy Shinn