批注接口 ConditionalOnEnabledInfoContributor


@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(org.springframework.boot.actuate.autoconfigure.info.OnEnabledInfoContributorCondition.class) public @interface ConditionalOnEnabledInfoContributor
@Conditional that checks whether an info contributor is enabled. Matches if the value of the management.info.<name>.enabled property is true. Otherwise, use the specific fallback method.
从以下版本开始:
2.0.0
作者:
Stephane Nicoll
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    The name of the info contributor.
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    Fallback behavior when management.info.<name>.enabled has not been set.
  • 元素详细资料

    • value

      String value
      The name of the info contributor.
      返回:
      the name of the info contributor
    • fallback

      Fallback behavior when management.info.<name>.enabled has not been set.
      返回:
      the fallback behavior
      默认值:
      USE_DEFAULTS_PROPERTY