Questions tagged [spring-cloud-config]

Spring Cloud Config provides server and client-side support for externalized configuration in a distributed system.

Spring Cloud Config provides server and client-side support for externalized configuration in a distributed system.

https://cloud.spring.io/spring-cloud-config/

1166 questions
117
votes
20 answers

No spring.config.import property has been defined

While creating Spring Boot cloud config application getting below error. Any help on this? No spring.config.import property has been defined Action: Add a spring.config.import=configserver: property to your configuration. If configuration is…
Kamal
  • 1,173
  • 2
  • 5
  • 6
43
votes
8 answers

Using Spring Cloud Config without Git repo

Is it possible to use Spring Cloud Config without using any Git repo at all? I'm trying to test it with a local directory with this in application.properties: spring.cloud.config.server.git.uri=file://${user.dir}/src/main/resources/config-repo But I…
Turar
  • 1,511
  • 5
  • 17
  • 27
30
votes
4 answers

Understanding Spring Cloud Release Versions

Spring folks do a great job of releasing lots of quality projects. One of them we have been using is Spring Cloud and its various sub-projects. One aspect that is really confusing to me is Spring Cloud version names. For ex., if you goto Spring…
singularity
  • 1,057
  • 2
  • 10
  • 20
25
votes
3 answers

How spring cloud config use local property override remote property

I know should set following properties, but still confused about where they should be set. spring: cloud: config: allowOverride: true failFast: true overrideNone: false application.properties file on…
allenyu5
  • 503
  • 1
  • 4
  • 9
24
votes
3 answers

How do you properly set different Spring profiles in bootstrap file (for Spring Boot to target different Cloud Config Servers)?

We have different config servers per environment. Each spring boot application should target its corresponding config server. I have tried to achieve this by setting profiles in the bootstrap.properties file,…
dev_feed
  • 689
  • 2
  • 7
  • 25
22
votes
4 answers

How to disable Eureka and Spring Cloud Config in a WebMvcTest?

I play with a simple Spring Boot application which registers itself in Eureka and uses spring cloud configuration to read some properties. Here it goes: @SpringBootApplication @EnableEurekaClient public class Application { public static void…
19
votes
4 answers

List final list of properties - Spring Cloud Config Server

Spring Cloud Config Server accepts multiple profile and returns the properties for all the profiles when I access the /env endpoint of the application. The response lists the properties specific to each profile. If same property is present in 2…
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
19
votes
5 answers

Spring Cloud Config Server Shared Properties Across Applications

I currently have a number of deployable applications that work in a distributed fashion to solve a business problem. We are currently using a number of property configuration files to provide changing configuration per environment based off a system…
Jeffxor
  • 231
  • 1
  • 2
  • 6
18
votes
4 answers

Authentication issue with repo accessed from Spring Cloud Config Server hosted on GitHub

I'm hosting a configuration in a repo on GitHub. If I keep the repo public all's good, but if I make it private I face: org.eclipse.jgit.errors.TransportException: https://github.com/my-user/my-repo: Authentication is required but no…
learnAndImprove
  • 1,339
  • 4
  • 15
  • 25
18
votes
4 answers

Spring Cloud Eureka with Config Server

What is the recommended configuration when running both Config Server with Eureka Server? Should Config Server be a client of Eureka? Or should Eureka be dependent on Config Server properties for its configuration? Or is both OK?
Turar
  • 1,511
  • 5
  • 17
  • 27
17
votes
5 answers

@RefreshScope and /refresh not working

I have tried to implement spring external configurations using Config Server. It is working fine for the very first time when the application is started but any changes to the properties file are not being reflected. I tried to use /refresh endpoint…
ASD
  • 325
  • 1
  • 2
  • 9
17
votes
4 answers

How to read multiple config file from Spring Cloud Config Server

Spring cloud config server supports reading property files with name ${spring.application.name}.properties. However I have 2 properties files in my application. a.properties b.properties Can I get the config server to read both these properties…
wangbin
  • 276
  • 1
  • 3
  • 16
17
votes
14 answers

Spring Config Server - No such label: master

I have a simple Spring Cloud Config Server which consume configuration from git server. ConfigServer bootstrap.yml : spring: application: name: config-service cloud: config: server: git: uri:…
mstzn
  • 2,881
  • 3
  • 25
  • 37
17
votes
1 answer

Spring cloud config organising files in folders

I'm trying to organise a set of config files in folders within my Git repo. I read in the Spring Cloud Docs this can be done this way: The HTTP service has resources in the form: /{application}/{profile}[/{label}]…
Amin Abu-Taleb
  • 4,423
  • 6
  • 33
  • 50
14
votes
3 answers

Why bootstrap.properties is ignored by spring-cloud-starter-config?

My goal is to get the config for world-service from a config-service. The architecture: config-service with dependency spring-cloud-config-server at localhost:8888 world-service with dependency the spring-web and spring-cloud-starter-config. What…
1
2 3
77 78