Questions tagged [spring-cloud-config-client]

The default behavior for any application that has the Spring Cloud Config Client on the classpath is as follows: When a config client starts, it binds to the Config Server (through the spring.cloud.config.uri bootstrap configuration property) and initializes Spring Environment with remote property sources.

The net result of this behavior is that all client applications that want to consume the Config Server need a bootstrap.yml (or an environment variable) with the server address set in spring.cloud.config.uri (it defaults to "http://localhost:8888").

24 questions
2
votes
1 answer

Spring Cloud Config Client tries localhost:8888 in addition to my specified server location

I have only found this issue reported in 1 other place, but no resolution: https://github.com/spring-cloud/spring-cloud-config/issues/2052 I'm on 2021.0.3. When defining anything other than the default localhost:8888 using spring.config.import, it…
2
votes
1 answer

Springboot Config server client returns status code: -1

I'm trying to spin up a simple config server using native file location. the configuration of the server looks like below server: port: 9001 spring: cloud: config: server: native: search-locations:…
1
vote
1 answer

Embedded Spring Cloud Config - How to retrieve a plain file?

I configured a very simple Spring Boot application with the following Gradle dependency: implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' The idea is to embed the Spring Cloud Config Server into the application. The…
1
vote
0 answers

Need help to resolve application not able to read config data from Spring Cloud Config Server deployed in IST environment over HTTPS

I configured the application to read the config information from spring cloud config server (spring boot application) which is deployed in IST environment (on PCF), I'm able to fetch the config data from URLs in postman and browser, but application…
1
vote
1 answer

Is "health.config.enabled" still being processed, and where?

Is the property "health.config.enabled" still valid and being processed in current Spring Cloud? If yes, where in the code it is being done? The property is in the current official documentation and has worked well for me so far (in cloud…
1
vote
0 answers

spring-config-client received multiple refresh event when ever there is a change in consumer-group-name

i am using spring cloud config server, kafka, git and spring cloud bus for to auto-refresh my client properties but when ever i am restarting my client application first time by changing consumer-group-name then i observed that during startup my…
1
vote
0 answers

Refresh server.port of a Spring Cloud Config Client dynamically via /actuator/refresh

Is it possible to make a Spring Cloud Config Client application refresh its configuration dynamically in a way, that it would restart its web server on a different "server.port" that has been read from updated configuration via Spring Cloud Config…
1
vote
0 answers

Spring Cloud Config Server using properties from server in actual application

I use Spring cloud config server embedded in an application. Can I populate that application's placeholders? If my config server gets a property ${some.property} from git, vault, native; can I actually use that ${some.property}, in the sever's…
1
vote
0 answers

Getting request Permission denied: no further information on Service Discovery with Spring-Cloud-Config

I am trying to connect to the spring cloud config server via a eureka registered serviceId. My Spring cloud config server is up and running , and my client can connect to it via local host. But I want to connect to it via the my config service is…
1
vote
0 answers

Spring Cloud Config: Bootstrap context not loading profile-specific property files for binding

Setup Spring Boot 2.6.0 Spring Cloud Config 3.1 RC1 Apache Maven 3.8.x OpenJDK 11 Overview I have a multi-module Apache Maven project that is set up with the following modules: bootstrap: contains a PropertySourceLocator for…
1
vote
0 answers

How to use application.propeties in spring cloud config client application?

How to use application.yml in spring cloud config client application? spring: application: name: app-cli profiles: active: DEV config: import: "configserver:" cloud: config: name: ${spring.application.name} uri:…
0
votes
0 answers

Spring cloud config - override profile locally failed

I have a microservice spring boot with spring cloud config client configured. I have 2 file: application.properties application-local.properties When I start app with ./mvnw spring-boot:run -Dspring-boot.run.profiles=local my expectation was…
0
votes
0 answers

Spring Cloud config server - Sharing properties (for Group of related services)

In our organization, we have over 100 micro services developed, and they are grouped into multiple business specific RAILS, such as ONLINE, Mobile, Payment, etc. AS of now we have common properties, namely application.json, and also service specific…
0
votes
0 answers

Spring cloud config OAuth2.0 protected server client authentication

I am planning to use jhipster-registry as spring cloud config server. I have implemented OAuth 2.0 security mechanism for protecting the server. The problem is, not sure how is a cloud config client (spring boot server with configured with…
0
votes
0 answers

Spring-Boot refresh endpoint is not working, spring cloud v2021.0.5 springboot v2.7.8

I have set up spring-cloud-config client and server and trying to pull properties from external git repository, my config-server is able to fetch the changes but config-client refresh endpoint doesn't show any change and do not pull changes which is…
1
2