Annotation Interface EnableDiscoveryClient
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@Import(EnableDiscoveryClientImportSelector.class)
public @interface EnableDiscoveryClient
Annotation to enable a DiscoveryClient implementation.
- Author:
- Spencer Gibb
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIf true, the ServiceRegistry will automatically register the local server.
-
Element Details
-
autoRegister
boolean autoRegisterIf true, the ServiceRegistry will automatically register the local server.- Returns:
- -
trueif you want to automatically register.
- Default:
true
-