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
8
votes
2 answers

Spring Cloud Config client not loading the value from config server

I am facing below issue while I try to run my Spring Cloud Config Client: Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'DATABASE_NAME' in string value "${DATABASE_NAME}" at…
Anzar
  • 151
  • 1
  • 7
8
votes
1 answer

Properties versioning with Spring Cloud Config

I am probably missing something here, but what is a good solution for properties versioning? For example, in a blue-green deployment scenario with property value changes (old app version consumes the old value, new version requires the new value),…
7
votes
5 answers

Spring config server security encryption and decryption not working

I am using spring config server and spring security. I have followed the link https://cloud.spring.io/spring-cloud-config/multi/multi__spring_cloud_config_server.html I have added JCF in C:\Program Files\Java\jdk1.8.0_171\jre\lib\security…
7
votes
4 answers

Spring Cloud Config Client: Fetching config from wrong server

When I run my Spring Cloud Config Client project config-client, I found these error: 2018-02-09 10:31:09.885 INFO 13933 --- [ main] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at:…
wenxiong yan
  • 104
  • 1
  • 3
7
votes
2 answers

@RefreshScope not working - Spring Boot

I am following the approach described here: https://github.com/jeroenbellen/blog-manage-and-reload-spring-properties, the only difference is that in my case, the properties are being used in multiple classes so I have put them all in one utility…
ion20
  • 577
  • 2
  • 7
  • 19
7
votes
1 answer

REST access to Spring Config Server from non-spring application

Does anyone know if its possible to use configuration values from the spring config server via a REST interface. If so, is there any documentation on the interface? TIA.
BillMan
  • 8,105
  • 9
  • 29
  • 51
7
votes
4 answers

Spring Cloud Config Client - could not resolve placeholder

I am getting the below error Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'rate' in string value "${rate}" at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)…
Kris Swat
  • 578
  • 1
  • 6
  • 19
7
votes
1 answer

How to use Spring Cloud Config with a Git and Vault composite environment repository?

I've been tinkering with Spring Cloud Config, but have a use case where config properties are divided into two types: Non-secret values, which developers should be able to view and maintain (e.g. JDBC URL's, etc) Secret values, which should be…
Steve Perkins
  • 10,830
  • 16
  • 58
  • 93
7
votes
2 answers

spring cloud - bootstrap.properties outside my jar

I am trying to put bootstrap.properties from outside my jar, so it won't get overridden by other developers by mistake. Could you please advice here? This is its' content - directing to the spring server config # application…
6
votes
1 answer

Spring Cloud Config Server vs ConfigMaps for cloud kubernetes

We wanted to build a Centralized Toggle Server leveraging Spring Cloud Config Server, but I've read a blog/article hinting that Spring Cloud Config is not Suited for Kubernetes Cloud environment (didn't give any reason why). Instead it is…
user3495691
  • 331
  • 2
  • 12
6
votes
2 answers

Can I get single property values from Spring Cloud Config Server?

I would like to get single property values from Spring Cloud Config Server with a wget/curl call from the command line. Single values because otherwise I have to parse them out of the response and I want to keep the bash-scripts as simple as…
burki
  • 5,226
  • 1
  • 10
  • 26
6
votes
3 answers

Should I mock Spring Cloud Config server properties during tests?

How do I test a service that has properties from spring cloud config server injected into it as a dependency? -Do I simply create my own properties during testing using the new keyword?(new ExampleProperties()) Or do I have to use spring and create…
Doug
  • 3,650
  • 2
  • 19
  • 22
6
votes
5 answers

Config server and eureka server in same application: tries to connect to localhost:8761

I have a spring-boot application which I use to setup a spring cloud config server and a eureka server in development and testing environments. Strangely the application always tries to connect to localhost:8761, even though I have…
meva
  • 153
  • 1
  • 1
  • 13
6
votes
1 answer

Spring cloud config - loading additional files

I got a spring cloud server for my applications, serving the common property files at startup. The 'normal' functionality is working fine. An application fetches the hierarchy of files and got the full access to the loaded…
6
votes
1 answer

Spring Cloud Config Symmetric Key

I have setup a simple project using Spring Cloud Config Server and I'm trying to simply encrypt and decrypt some values. I create the project as a Spring Starter Project using the following pom.xml with Spring Boot. pom.xml
Kevin Bowersox
  • 88,138
  • 17
  • 142
  • 176
1 2
3
65 66