spring-cloud-bus icon indicating copy to clipboard operation
spring-cloud-bus copied to clipboard

Spring config server not receiving updated value from application.yml

Open schitaliaGuest opened this issue 3 years ago • 0 comments

Hello team,

I have a config server and a config client running locally. I am trying to test updating a config file and having the client get the updates without having to restart. Using spring cloud bus with rabbitmq to do so.

Using a local git repository here, so not able to have a webhook invoke the config server. In place of it I am trying to simulate the call to /monitor endpoint via postman. My config server always says the following in the log

o.s.c.c.monitor.PropertyPathEndpoint : Refresh for: * 2022-04-26 15:58:37.660 INFO 71202 --- [nio-8888-exec-5] o.s.cloud.bus.event.RefreshListener : Received remote refresh request. 2022-04-26 15:58:37.905 INFO 71202 --- [nio-8888-exec-5] o.s.cloud.bus.event.RefreshListener : Keys refreshed []

My postman request looks like this

http://localhost:8888/monitor { "path": "*" }

Is there anyways by which I can mimic what a github webhook would do?

It works perfectly fine, meaning updates the changed value on client if I invoke client endpoint using http://localhost:8080/actuator/refresh

schitaliaGuest avatar Apr 26 '22 23:04 schitaliaGuest