Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring config server not receiving updated value from application.yml #260

Open
schitaliaGuest opened this issue Apr 26, 2022 · 0 comments

Comments

@schitaliaGuest
Copy link

schitaliaGuest commented Apr 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants