Search code examples
spring-cloudspring-boot-actuatorspring-cloud-configspring-cloud-bus

Spring Cloud Bus does not longer support POST requests to /actuator/bus-refresh


I've found out that Spring Cloud Bus does not support POST requests to /actuator/bus-refresh on Spring Cloud version 2020.0.0. When I try to send it, I recieve 405 "Method Not Allowed". Is there any way to automatically refresh all my client services' configurations without using /monitor and git webhooks or downgrading Spring Cloud version?

I have included spring-cloud-starter-bus-amqp and spring-boot-starter-actuator dependencies, bus-refresh endpoint is exposed. RabbitMQ is up and running, springCloudBus topic is created and queues are added when my services start. It fetches property sources to my Config Server when I do GET request to /actuator/bus-refresh, but my client services properties files are not refreshed and messages are not added to queues.


Solution

  • In the latest breaking changes logs found here the bus-refresh endpoint is renamed to busrefresh.

    bus-env is now busenv

    bus-refresh is now busrefresh