Sync docs from master to gh-pages
This commit is contained in:
@@ -117,6 +117,7 @@ $(addBlockSwitches);
|
||||
<ul class="sectlevel3">
|
||||
<li><a href="#health-indicator">2.1.1. Health Indicator</a></li>
|
||||
<li><a href="#ordering-discoveryclient-instances">2.1.2. Ordering <code>DiscoveryClient</code> instances</a></li>
|
||||
<li><a href="#simplediscoveryclient">2.1.3. SimpleDiscoveryClient</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#serviceregistry">2.2. ServiceRegistry</a>
|
||||
@@ -673,6 +674,21 @@ implementations provided by Spring Cloud, among others <code>ConsulDiscoveryCli
|
||||
<code>spring.cloud.{clientIdentifier}.discovery.order</code> (or <code>eureka.client.order</code> for Eureka) property to the desired value.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="simplediscoveryclient"><a class="anchor" href="#simplediscoveryclient"></a><a class="link" href="#simplediscoveryclient">2.1.3. SimpleDiscoveryClient</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>If there is no Service-Registry-backed <code>DiscoveryClient</code> in the classpath, <code>SimpleDiscoveryClient</code>
|
||||
instance, that uses properties to get information on service and instances, will be used.</p>
|
||||
</div>
|
||||
<div class="paragraph">
|
||||
<p>The information about the available instances should be passed to via properties in the following format:
|
||||
<code>spring.cloud.discovery.client.simple.instances.service1[0].uri=http://s11:8080</code>, where
|
||||
<code>spring.cloud.discovery.client.simple.instances</code> is the common prefix, then <code>service1</code> stands
|
||||
for the ID of the service in question, while <code>[0]</code> indicates the index number of the instance
|
||||
(as visible in the example, indexes start with <code>0</code>), and then the value of <code>uri</code> is
|
||||
the actual URI under which the instance is available.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="serviceregistry"><a class="anchor" href="#serviceregistry"></a><a class="link" href="#serviceregistry">2.2. ServiceRegistry</a></h3>
|
||||
|
||||
Reference in New Issue
Block a user