Annotation Type ConditionalOnAutoServiceRegistrationEnabled
-
@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @ConditionalOnProperty(name="spring.cloud.service-registry.auto-registration.enabled", matchIfMissing=true) public @interface ConditionalOnAutoServiceRegistrationEnabledThe conditional annotation meta-annotates@ConditionalOnPropertyforService Registry Auto-Registrationenabled.- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
AutoServiceRegistration,ConditionalOnProperty
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanmatchIfMissingSpecify if the condition should match if the property is not set.
-
-
-
Element Detail
-
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.- Returns:
- if the condition should match if the property is missing
- Default:
- true
-
-