Annotation Interface ConditionalOnAutoServiceRegistrationEnabled
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Documented
@ConditionalOnProperty(name="spring.cloud.service-registry.auto-registration.enabled",
matchIfMissing=true)
public @interface ConditionalOnAutoServiceRegistrationEnabled
The conditional annotation meta-annotates
@ConditionalOnProperty for
Service Registry Auto-Registration enabled.- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
AutoServiceRegistrationConditionalOnProperty
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSpecify if the condition should match if the property is not set.
-
Element Details
-
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
-