Add spring-cloud-config-server ability to share common configuration across applications
See original GitHub issueRight now it doesn’t seem possible to share common configuration across applications. This might be a typical use case for certain types of configurations such as shared resources and system wide conventions. Perhaps it would be possible to add something conventional like a bootstrap.yml
file for this purpose. Some ideas for naming here:
defaults.yml
base.yml
common.yml
shared.yml
application.yml
This could also support the label variants as well (e.g. application-development.yml
, application-production.yml
, etc.) The last one is particularly interesting because it is already a convention for Spring Boot. It seems to make sense in a system context as well.
Open to suggestions, but this is something that seems general enough to warrant some sort of support.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:2
- Comments:25 (9 by maintainers)
Top Results From Across the Web
Getting Started | Centralized Configuration - Spring
Click Dependencies and select Config Server (for the service application) or Config Client, Spring Boot Actuator, and Spring Web (for the client application)....
Read more >Centralized Configuration with Spring Cloud Config Server
In this article, we're going to learn how to build a centralized config server and how to use it to configure a Spring...
Read more >Spring Cloud Config for Shared Microservice Configuration
This tutorial shows how to use Spring Cloud config to manage configuration properties for multiple Spring Boot applications from a single ...
Read more >Spring Cloud Config with File System Backend - Medium
It is particularly useful when you have multiple Java applications sharing… ... in the property files of your Spring Cloud Config Server, you...
Read more >Spring Cloud Config - Serving multiple applications which has ...
Currently we are planning to externalize configurations related to multiple our applications with the help of Spring Cloud Config.
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
@dsyer Thanks for the prompt response. I actually got it working just now. So I am not sure the behaviour I am seeing is a bug or its intended (and should be put in doc in that case)
My application.yml now looks like:
What is happening currently is that what I put in global.yml is seen across all clients. In the config folder I can put ymls as {application-name}.yml and its seen by that application only.
Even if its not intended I am happy for now and hope it remains same 😃
I am on spring-cloud-config-server v1.1.0.M3 (through spring cloud Brixton M3)
Thanks again!
@btiernay That is currently how `application.[properties|yml] is shared across all applications using config server.