Skip to content

Commit a1c355e

Browse files
committed
Fix docs after review. Regenerate configprops.
1 parent dd47ca6 commit a1c355e

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

docs/modules/ROOT/pages/spring-cloud-commons/common-abstractions.adoc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Please see the documentation of the `ServiceRegistry` implementation you use for
135135
For instance, Eureka's supported statuses are `UP`, `DOWN`, `OUT_OF_SERVICE`, and `UNKNOWN`.
136136

137137
[[rest-template-loadbalancer-client]]
138-
== Spring `RestTemplate` as a LoadBalancer Client
138+
== Spring RestTemplate as a LoadBalancer Client
139139

140140
You can configure a `RestTemplate` to use a Load-balancer client.
141141
To create a load-balanced `RestTemplate`, create a `RestTemplate` `@Bean` and use the `@LoadBalanced` qualifier, as the following example shows:
@@ -173,7 +173,7 @@ IMPORTANT: To use a load-balanced `RestTemplate`, you need to have a Spring Clou
173173
Add xref:spring-cloud-commons/loadbalancer.adoc#spring-cloud-loadbalancer-starter[Spring Cloud LoadBalancer starter] to your project in order to use it.
174174

175175
[[multiple-resttemplate-objects]]
176-
=== Multiple `RestTemplate` Objects
176+
=== Multiple RestTemplate Objects
177177

178178
If you want a `RestTemplate` that is not load-balanced, create a `RestTemplate` bean and inject it.
179179
To access the load-balanced `RestTemplate`, use the `@LoadBalanced` qualifier when you create your `@Bean`, as the following example shows:
@@ -219,7 +219,7 @@ IMPORTANT: Notice the use of the `@Primary` annotation on the plain `RestTemplat
219219
TIP: If you see errors such as `java.lang.IllegalArgumentException: Can not set org.springframework.web.client.RestTemplate field com.my.app.Foo.restTemplate to com.sun.proxy.$Proxy89`, try injecting `RestOperations` or setting `spring.aop.proxyTargetClass=true`.
220220

221221
[[rest-client-loadbalancer-client]]
222-
== Spring `RestClient` as a LoadBalancer Client
222+
== Spring RestClient as a LoadBalancer Client
223223

224224
You can configure a `RestClient` to use a Load-balancer client.
225225
To create a load-balanced `RestClient`, create a `RestClient.Builder` `@Bean` and use the `@LoadBalanced` qualifier, as the following example shows:
@@ -250,8 +250,7 @@ public class MyClass {
250250
The URI needs to use a virtual host name (that is, a service name, not a host name).
251251
The `BlockingLoadBalancerClient` is used to create a full physical address.
252252

253-
IMPORTANT: To use a load-balanced `RestClient`, you need to have a Spring LoadBalancer implementation in your classpath.
254-
Add xref:spring-cloud-commons/loadbalancer.adoc#spring-cloud-loadbalancer-starter[Spring Cloud LoadBalancer starter] to your project in order to use it.
253+
IMPORTANT: To use it, add xref:spring-cloud-commons/loadbalancer.adoc#spring-cloud-loadbalancer-starter[Spring Cloud LoadBalancer starter] to your project.
255254

256255
[[multiple-restclient-objects]]
257256
=== Multiple `RestClient.Builder` Objects
@@ -300,7 +299,7 @@ public class MyClass {
300299
IMPORTANT: Notice the use of the `@Primary` annotation on the plain `RestTemplate` declaration in the preceding example to disambiguate the unqualified `@Autowired` injection.
301300

302301
[[webclinet-loadbalancer-client]]
303-
== Spring `WebClient` as a LoadBalancer Client
302+
== Spring WebClient as a LoadBalancer Client
304303

305304
You can configure `WebClient` to automatically use a load-balancer client.
306305
To create a load-balanced `WebClient`, create a `WebClient.Builder` `@Bean` and use the `@LoadBalanced` qualifier, as follows:

docs/modules/ROOT/pages/spring-cloud-commons/loadbalancer.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ NOTE: The classes you pass as `@LoadBalancerClient` or `@LoadBalancerClients` co
4444
[[spring-cloud-loadbalancer-integrations]]
4545
== Spring Cloud LoadBalancer integrations
4646

47-
In order to make it easy to use Spring Cloud LoadBalancer, we provide `ReactorLoadBalancerExchangeFilterFunction` that can be used with `WebClient` and `BlockingLoadBalancerClient` that works with `RestTemplate` and `RestClient`.
47+
To make it easy to use Spring Cloud LoadBalancer, we provide `ReactorLoadBalancerExchangeFilterFunction` (which can be used with `WebClient`) and `BlockingLoadBalancerClient` (which works with `RestTemplate` and `RestClient`).
4848
You can see more information and examples of usage in the following sections:
4949

5050
* xref:spring-cloud-commons/common-abstractions.adoc#rest-template-loadbalancer-client[Spring `RestTemplate` as a LoadBalancer Client]

docs/modules/ROOT/partials/_configprops.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
|spring.cloud.loadbalancer.stats.micrometer.enabled | `+++false+++` | Enables Spring Cloud LoadBalancer Micrometer stats.
7070
|spring.cloud.loadbalancer.sticky-session.add-service-instance-cookie | `+++false+++` | Indicates whether a cookie with the newly selected instance should be added by LoadBalancer.
7171
|spring.cloud.loadbalancer.sticky-session.instance-id-cookie-name | `+++sc-lb-instance-id+++` | The name of the cookie holding the preferred instance id.
72+
|spring.cloud.loadbalancer.subset.instance-id | | Instance id of deterministic subsetting. If not set, {@link IdUtils#getDefaultInstanceId(PropertyResolver)} will be used.
73+
|spring.cloud.loadbalancer.subset.size | `+++100+++` | Max subset size of deterministic subsetting.
7274
|spring.cloud.loadbalancer.x-forwarded.enabled | `+++false+++` | To Enable X-Forwarded Headers.
7375
|spring.cloud.loadbalancer.zone | | Spring Cloud LoadBalancer zone.
7476
|spring.cloud.refresh.additional-property-sources-to-retain | | Additional property sources to retain during a refresh. Typically only system property sources are retained. This property allows property sources, such as property sources created by EnvironmentPostProcessors to be retained as well.

0 commit comments

Comments
 (0)