批注接口 ConditionalOnEnabledHealthIndicator


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(org.springframework.boot.actuate.autoconfigure.health.OnEnabledHealthIndicatorCondition.class) public @interface ConditionalOnEnabledHealthIndicator
@Conditional that checks whether a default health indicator is enabled. Matches if the value of the management.health.<name>.enabled property is true. Otherwise, matches if the value of the management.health.defaults.enabled property is true or if it is not configured.
从以下版本开始:
2.0.0
作者:
Stephane Nicoll
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    The name of the health indicator.
  • 元素详细资料

    • value

      String value
      The name of the health indicator.
      返回:
      the name of the health indicator