Skip to content

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

Description

@schitaliaGuest

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions