@ -25,7 +25,9 @@ Otherwise, it can bubble up as the <code class="literal">description</code> of t
@@ -25,7 +25,9 @@ Otherwise, it can bubble up as the <code class="literal">description</code> of t
}</pre><p>Each <codeclass="literal">ServiceRegistry</code> implementation has its own <codeclass="literal">Registry</code> implementation.</p><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aname="_serviceregistry_auto_registration"href="#_serviceregistry_auto_registration"></a>2.2.1 ServiceRegistry Auto-Registration</h3></div></div></div><p>By default, the <codeclass="literal">ServiceRegistry</code> implementation auto-registers the running service.
}</pre><p>Each <codeclass="literal">ServiceRegistry</code> implementation has its own <codeclass="literal">Registry</code> implementation.</p><divclass="itemizedlist"><ulclass="itemizedlist"style="list-style-type: disc; "><liclass="listitem"><codeclass="literal">ZookeeperRegistration</code> used with <codeclass="literal">ZookeeperServiceRegistry</code></li><liclass="listitem"><codeclass="literal">EurekaRegistration</code> used with <codeclass="literal">EurekaServiceRegistry</code></li><liclass="listitem"><codeclass="literal">ConsulRegistration</code> used with <codeclass="literal">ConsulServiceRegistry</code></li></ul></div><p>If you are using the <codeclass="literal">ServiceRegistry</code> interface, you are going to need to pass the
correct <codeclass="literal">Registry</code> implementation for the <codeclass="literal">ServiceRegistry</code> implementation you
are using.</p><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aname="_serviceregistry_auto_registration"href="#_serviceregistry_auto_registration"></a>2.2.1 ServiceRegistry Auto-Registration</h3></div></div></div><p>By default, the <codeclass="literal">ServiceRegistry</code> implementation auto-registers the running service.
To disable that behavior, you can set:
* <codeclass="literal">@EnableDiscoveryClient(autoRegister=false)</code> to permanently disable auto-registration.
* <codeclass="literal">spring.cloud.service-registry.auto-registration.enabled=false</code> to disable the behavior through configuration.</p></div><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aname="_service_registry_actuator_endpoint"href="#_service_registry_actuator_endpoint"></a>2.2.2 Service Registry Actuator Endpoint</h3></div></div></div><p>Spring Cloud Commons provides a <codeclass="literal">/service-registry</code> actuator endpoint.
@ -177,7 +179,7 @@ The following configuration ignores the <code class="literal">docker0</code> int
@@ -177,7 +179,7 @@ The following configuration ignores the <code class="literal">docker0</code> int
ignoredInterfaces:
- docker0
- veth.*</pre><p>
</p><p>You can also force the use of only specified network addresses by using a list of regular expressions, as shown in the following example:</p><p><b>application.yml. </b>
</p><p>You can also force the use of only specified network addresses by using a list of regular expressions, as shown in the following example:</p><p><b>bootstrap.yml. </b>
@ -112,7 +112,9 @@ Otherwise, it can bubble up as the <code class="literal">description</code> of t
@@ -112,7 +112,9 @@ Otherwise, it can bubble up as the <code class="literal">description</code> of t
}</pre><p>Each <codeclass="literal">ServiceRegistry</code> implementation has its own <codeclass="literal">Registry</code> implementation.</p><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aname="_serviceregistry_auto_registration"href="#_serviceregistry_auto_registration"></a>2.2.1 ServiceRegistry Auto-Registration</h3></div></div></div><p>By default, the <codeclass="literal">ServiceRegistry</code> implementation auto-registers the running service.
}</pre><p>Each <codeclass="literal">ServiceRegistry</code> implementation has its own <codeclass="literal">Registry</code> implementation.</p><divclass="itemizedlist"><ulclass="itemizedlist"style="list-style-type: disc; "><liclass="listitem"><codeclass="literal">ZookeeperRegistration</code> used with <codeclass="literal">ZookeeperServiceRegistry</code></li><liclass="listitem"><codeclass="literal">EurekaRegistration</code> used with <codeclass="literal">EurekaServiceRegistry</code></li><liclass="listitem"><codeclass="literal">ConsulRegistration</code> used with <codeclass="literal">ConsulServiceRegistry</code></li></ul></div><p>If you are using the <codeclass="literal">ServiceRegistry</code> interface, you are going to need to pass the
correct <codeclass="literal">Registry</code> implementation for the <codeclass="literal">ServiceRegistry</code> implementation you
are using.</p><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aname="_serviceregistry_auto_registration"href="#_serviceregistry_auto_registration"></a>2.2.1 ServiceRegistry Auto-Registration</h3></div></div></div><p>By default, the <codeclass="literal">ServiceRegistry</code> implementation auto-registers the running service.
To disable that behavior, you can set:
* <codeclass="literal">@EnableDiscoveryClient(autoRegister=false)</code> to permanently disable auto-registration.
* <codeclass="literal">spring.cloud.service-registry.auto-registration.enabled=false</code> to disable the behavior through configuration.</p></div><divclass="section"><divclass="titlepage"><div><div><h3class="title"><aname="_service_registry_actuator_endpoint"href="#_service_registry_actuator_endpoint"></a>2.2.2 Service Registry Actuator Endpoint</h3></div></div></div><p>Spring Cloud Commons provides a <codeclass="literal">/service-registry</code> actuator endpoint.
@ -264,7 +266,7 @@ The following configuration ignores the <code class="literal">docker0</code> int
@@ -264,7 +266,7 @@ The following configuration ignores the <code class="literal">docker0</code> int
ignoredInterfaces:
- docker0
- veth.*</pre><p>
</p><p>You can also force the use of only specified network addresses by using a list of regular expressions, as shown in the following example:</p><p><b>application.yml. </b>
</p><p>You can also force the use of only specified network addresses by using a list of regular expressions, as shown in the following example:</p><p><b>bootstrap.yml. </b>
<simpara>By default, the <literal>ServiceRegistry</literal> implementation auto-registers the running service.
@ -496,7 +510,7 @@ The following configuration ignores the <literal>docker0</literal> interface and
@@ -496,7 +510,7 @@ The following configuration ignores the <literal>docker0</literal> interface and
</formalpara>
<simpara>You can also force the use of only specified network addresses by using a list of regular expressions, as shown in the following example:</simpara>