Spring Cloud 1.5.9 uses Stream with Kafka as the binder, but the health check is not taking effect. During the check, there is no status related to the binder. During local debugging, the class BindersHealthIndicatorAutoConfiguration is not executed at all. Checked the order of Spring configuration and found there are "not match" conditions, but the bean is still executed.
BindersHealthIndicatorAutoConfiguration:
Did not match:
- @ConditionalOnBean (types: org.springframework.cloud.stream.binder.DefaultBinderFactory; SearchStrategy: all) did not find any beans (OnBeanCondition)
Matched:
- @ConditionalOnClass found required class 'org.springframework.boot.actuate.health.HealthIndicator'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition)
- @ConditionalOnEnabledHealthIndicator management.health.defaults.enabled is considered true (OnEnabledHealthIndicatorCondition)