Rabbit Binder Health Indicator
Rabbit 绑定程序的健康指示符会委派给 Spring Boot 提供的指示符。有关此信息的更多详情,请参见 this。
The health indicator for Rabbit binder delegates to the one provided from Spring Boot. For more information on this, see this.
您可以使用属性 management.health.binders.enabled
将该运行状况指示器停用在 Binder 级别,并将其设为 false
。在多绑定环境中,必须在 Binder 的环境属性中设置此属性。
You can disable this health indicator at the binder level by using the property - management.health.binders.enabled
and set this to false
.
In the case of multi-binder environments, this has to be set on the binder’s environment properties.
禁用运行状况指示器后,您应在运行状况执行程序端点中看到如下内容:
When the health indicator is disabled, you should see something like the below in the health actuator endpoint:
"rabbit": {
"status": "UNKNOWN"
}
在 Spring Boot 级别,如果要禁用 Rabbit 运行状况指示器,您需要使用属性 management.health.rabbit.enabled
并将其设为 false
。
At the Spring Boot level, if you want to disable the Rabbit health indicator, you need to use the property management.health.rabbit.enabled
and set to false
.