注释类型 ConditionalOnFeaturesEnabled
-
@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @ConditionalOnProperty(name="spring.cloud.features.enabled") public @interface ConditionalOnFeaturesEnabledThe conditional annotation meta-annotates@ConditionalOnPropertyfor@FeaturesEndpointenabled.- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
CommonsClientAutoConfiguration.ActuatorConfiguration,FeaturesEndpoint,HasFeatures,CommonsPropertyConstants.FEATURES_ENABLED_PROPERTY_NAME,ConditionalOnProperty
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 booleanmatchIfMissingSpecify if the condition should match if the property is not set.
-
-
-
元素详细资料
-
matchIfMissing
@AliasFor(annotation=org.springframework.boot.autoconfigure.condition.ConditionalOnProperty.class, attribute="matchIfMissing") boolean matchIfMissingSpecify if the condition should match if the property is not set. Defaults totrue.- 返回:
- if the condition should match if the property is missing
- 默认值:
- true
-
-