注释类型 ConditionalOnEnabledInfoContributor


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

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

      • value

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