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/

979 questions
38
votes
7 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,411
  • 5
  • 17
  • 27
26
votes
2 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
  • 917
  • 1
  • 8
  • 20
19
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
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
  • 629
  • 2
  • 6
  • 24
17
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
  • 12,516
  • 39
  • 134
  • 241
16
votes
2 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
  • 383
  • 1
  • 2
  • 9
16
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,411
  • 5
  • 17
  • 27
14
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…
David.Wang
  • 316
  • 1
  • 2
  • 12
14
votes
3 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
  • 181
  • 1
  • 6
12
votes
1 answer

Start Spring Boot context with remote config from JUnit Test

I am writing integration tests in a microservice environment. I want to fully initialize my Spring Boot application context once when running my JUnit test class. I can do this easily enough under normal circumstances, but in this case I need to…
12
votes
2 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…
11
votes
5 answers

actuator /refresh is not being provided in SpringBoot 2.0.1

I am creating a demo project for Spring-Config-Server and Spring-Config-Client. In SpringBoot 1.5.6.RELEASE everything is working fine. However, when I am upgrading project to 2.0.1.RELEASE it does not provide the actuator endpoints. Actuator…
11
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,065
  • 5
  • 28
  • 48
11
votes
2 answers

Include common config for multiple apps in Spring Cloud Config server

I'm trying to migrate our stable of app servers to get their configuration from a Spring Cloud Config server. Each app has a {my-app}.yml file on the config server and we can use profiles (either in files named {my-app}-{profile}.yml or using…
Zirzirikos
  • 427
  • 1
  • 4
  • 13
10
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…
kidfrom
  • 612
  • 1
  • 3
  • 12
1
2 3
65 66