Can local config override remote props when running embedded?
See original GitHub issueCan we make local configuration override remote properties when running embedded server?
I know it’s possible when running a Config server and a Config client separately. If I set spring.cloud.config.allowOverride=true
on the server and set spring.cloud.config.overrideNone=true
on the client, the local configuration overrides the remote.
Some related links regarding this
- http://cloud.spring.io/spring-cloud-static/spring-cloud.html#overriding-bootstrap-properties
- https://github.com/spring-cloud/spring-cloud-config/issues/509
Is it possible when running embedded server with spring.cloud.config.server.bootstrap=true
? I’ve tried set the properties in the project like below but it didn’t work.
spring:
profiles: default
cloud:
config:
allowOverride: true
overrideNone: true
server:
bootstrap: true
git:
uri: file://${user.home}/config
Issue Analytics
- State:
- Created 7 years ago
- Comments:15
Top Results From Across the Web
How spring cloud config use local property override remote ...
I set the following configurations in remote git repo. It works this time. spring: cloud: config: allowOverride: true overrideNone: true ...
Read more >Spring Cloud
If you want to allow your applications to override the remote properties with their own System properties or config files, the remote property...
Read more >Overriding the Values of Remote Properties in Spring Cloud ...
In this article, we've seen different ways of overriding the values of remote properties in Spring Cloud Config. It's possible to override the...
Read more >Configuration Blocks and Attributes - Terragrunt
Learn about all the blocks and attributes supported in the terragrunt configuration file.
Read more >Configuration Server - Standalone Profile - Apereo Blog
There is also an embedded application.yml file that allows you to override all defaults if you wish to ship the configuration inside the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Jeckyli
Right.
Correct.
This ticket saved my day.
Thank you guys