Spring Cloud Bus 提供了两个端点,分别对应于 Spring Cloud Commons 中的各个执行器端点。/actuator/busrefresh
/actuator/busenv
/actuator/refresh
/actuator/env
总线刷新终结点
端点清除缓存并重新绑定 。请参阅刷新范围文档
更多信息。/actuator/busrefresh
RefreshScope
@ConfigurationProperties
若要公开终结点,需要将以下配置添加到
应用:/actuator/busrefresh
management.endpoints.web.exposure.include=busrefresh
总线环境端点
终端节点使用指定的
跨多个实例的键/值对。/actuator/busenv
若要公开终结点,需要将以下配置添加到
应用:/actuator/busenv
management.endpoints.web.exposure.include=busenv
终结点接受具有以下形状的请求:/actuator/busenv
POST
{
"name": "key1",
"value": "value1"
}