Spring Cloud Bus 提供了两个端点,分别对应于 Spring Cloud Commons 中的各个执行器端点。/actuator/busrefresh/actuator/busenv/actuator/refresh/actuator/envSpring中文文档

总线刷新终结点

端点清除缓存并重新绑定 。请参阅刷新范围文档 更多信息。/actuator/busrefreshRefreshScope@ConfigurationPropertiesSpring中文文档

若要公开终结点,需要将以下配置添加到 应用:/actuator/busrefreshSpring中文文档

management.endpoints.web.exposure.include=busrefresh

总线环境端点

终端节点使用指定的 跨多个实例的键/值对。/actuator/busenvSpring中文文档

若要公开终结点,需要将以下配置添加到 应用:/actuator/busenvSpring中文文档

management.endpoints.web.exposure.include=busenv

终结点接受具有以下形状的请求:/actuator/busenvPOSTSpring中文文档

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