question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add spring-cloud-config-server ability to share common configuration across applications

See original GitHub issue

Right 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:closed
  • Created 9 years ago
  • Reactions:2
  • Comments:25 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
shashanksinghalcommented, Nov 26, 2015

@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:

server:
  port: 8888

spring:
  profiles:
    active: native
  cloud:
    config:
      server:
        native:
          search-locations: classpath:config/,classpath:config/global.yml

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!

4reactions
spencergibbcommented, Nov 8, 2014

@btiernay That is currently how `application.[properties|yml] is shared across all applications using config server.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found