2. Bus Endpoints

Spring Cloud Bus provides two endpoints, /actuator/busrefresh and /actuator/busenv that correspond to individual actuator endpoints in Spring Cloud Commons, /actuator/refresh and /actuator/env respectively.spring-doc.cn

2.1. Bus Refresh Endpoint

The /actuator/busrefresh endpoint clears the RefreshScope cache and rebinds @ConfigurationProperties. See the Refresh Scope documentation for more information.spring-doc.cn

To expose the /actuator/busrefresh endpoint, you need to add following configuration to your application:spring-doc.cn

management.endpoints.web.exposure.include=busrefresh

2.2. Bus Env Endpoint

The /actuator/busenv endpoint updates each instances environment with the specified key/value pair across multiple instances.spring-doc.cn

To expose the /actuator/busenv endpoint, you need to add following configuration to your application:spring-doc.cn

management.endpoints.web.exposure.include=busenv

The /actuator/busenv endpoint accepts POST requests with the following shape:spring-doc.cn

{
    "name": "key1",
    "value": "value1"
}