注释类型 ConditionalOnFeaturesEnabled


  • @Retention(RUNTIME)
    @Target({TYPE,METHOD})
    @Documented
    @ConditionalOnProperty(name="spring.cloud.features.enabled")
    public @interface ConditionalOnFeaturesEnabled
    The conditional annotation meta-annotates @ConditionalOnProperty for @FeaturesEndpoint enabled.
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    CommonsClientAutoConfiguration.ActuatorConfiguration, FeaturesEndpoint, HasFeatures, CommonsPropertyConstants.FEATURES_ENABLED_PROPERTY_NAME, ConditionalOnProperty
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      boolean matchIfMissing
      Specify if the condition should match if the property is not set.
    • 元素详细资料

      • matchIfMissing

        @AliasFor(annotation=org.springframework.boot.autoconfigure.condition.ConditionalOnProperty.class,
                  attribute="matchIfMissing")
        boolean matchIfMissing
        Specify if the condition should match if the property is not set. Defaults to true.
        返回:
        if the condition should match if the property is missing
        默认值:
        true