spring:
profiles: default
cloud:
config:
allowOverride: true
overrideNone: true
server:
bootstrap: true
git:
uri: file://${user.home}/config
both should reside on config server side, and if I understand correctly, spring.cloud.config.allow-override=true allows system properties from client side to override config server values right?
The problem I'm facing now is I'm trying to have a local prop on config client side to override the same prop from config server, let's say
config server:
key=valueA
In which file (like bootstrap.properties, application.properties or else) should I put on client side
key=valueB
so that client will use valueB for this key? Yes
--------------------
define following properties in git repo (as a source for config-server) [for given profile]:
spring.cloud.config:
overrideSystemProperties: false
overrideNone: true
keep in mind properties (especially overrideSystemProperties & overrideNone) in bootsrap.yml are overriden by those from config-server by default
spring:
cloud:
config:
allowOverride: true
overrideNone: true
overrideSystemProperties: false
No comments:
Post a Comment