这个版本仍在开发中,尚未达到稳定状态。要使用最新稳定版,请使用 spring-cloud-stream 5.0.1 spring-doc.cadn.net.cn

Rabbit 绑定状况指标

The health indicator for Rabbit binder delegates to the one provided from Spring Boot. For more information on this, see this.spring-doc.cadn.net.cn

您可以使用属性 management.health.binders.enabled 在绑定器级别禁用此运行状况指标,并将其设置为 false。在多绑定器环境中,必须在绑定器环境属性上设置此属性。spring-doc.cadn.net.cn

当健康指标被禁用时,您应该在健康量表端点中看到如下所示的内容:spring-doc.cadn.net.cn

"rabbit": {
  "status": "UNKNOWN"
}

在Spring Boot级别,如果你想禁用Rabbit健康指标,需要将属性设置为management.health.rabbit.enabled并设置为falsespring-doc.cadn.net.cn