Annotation Type 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 ElementDescriptionboolean
If true, the ServiceRegistry will automatically register the local server.
-
Element Details
-
autoRegister
boolean autoRegisterIf true, the ServiceRegistry will automatically register the local server.- Returns:
- -
true
if you want to automatically register.
- Default:
- true
-