Abdelrahman Essam
Abdelrahman Essam

Reputation: 31

spring-cloud-config connects and finds config server but can't get config data

i have configured a config server to get configurations from a local git repo and its endpoint 'http://localhost:8889/limits-service/default' working properly. calling the config server end point

but when a config client tries to connect to the config server the client does not get any config data and returns the local config data resides in the client application.properties file. this logs appears when running the client app. this logs appears when running the client app and on the server side, it seems that the server gets the request and handles it. this logs appears on the server side this logs appears on the server side

and here are the return values, when I try to test the new config values on the client side, fetched from the server I find that still the local values with no updates. values are not updated values are not updated and here are the properties files for the client and server and the local Git repo client properties file client properties file server properties file server properties file Git repo properties file Git repo properties file

so can anyone please tell me why config values are not getting updated though the client connects to the server and the server handles the request properly?

I am trying to connect a config client with a config server to update the client config values but the values are not getting updated though the client connects to the server and the server handles the request properly.

Upvotes: 1

Views: 901

Answers (1)

Abdelrahman Essam
Abdelrahman Essam

Reputation: 31

the problem just was that I used the wrong method to read the updated value from the properties file. i used this and it now working proberly enter image description here

Upvotes: 0

Related Questions