Skip to content

Commit 6850706

Browse files
committed
Merge branch '4.1.x'
2 parents 3bf0d84 + 0699c9c commit 6850706

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ nav:
66
ext:
77
collector:
88
run:
9-
command: ./mvnw --no-transfer-progress -B process-resources -Pdocs -pl docs -Dantora-maven-plugin.phase=none -Dgenerate-docs.phase=none -Dgenerate-readme.phase=none -Dgenerate-cloud-resources.phase=none -Dmaven-dependency-plugin-for-docs.phase=none -Dmaven-dependency-plugin-for-docs-classes.phase=none -DskipTests
9+
command: ./mvnw --no-transfer-progress -B process-resources -Pdocs -pl docs -Dantora-maven-plugin.phase=none -Dgenerate-docs.phase=none -Dgenerate-readme.phase=none -Dgenerate-cloud-resources.phase=none -Dmaven-dependency-plugin-for-docs.phase=none -Dmaven-dependency-plugin-for-docs-classes.phase=none -DskipTests -DdisableConfigurationProperties
1010
local: true
1111
scan:
1212
dir: ./target/classes/antora-resources/

docs/modules/ROOT/pages/spring-cloud-openfeign.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ TIP: For Spring Cloud Contract test integration, lazy attribute resolution shoul
9090
[[spring-cloud-feign-overriding-defaults]]
9191
=== Overriding Feign Defaults
9292

93-
A central concept in Spring Cloud's Feign support is that of the named client. Each feign client is part of an ensemble of components that work together to contact a remote server on demand, and the ensemble has a name that you give it as an application developer using the `@FeignClient` annotation. Spring Cloud creates a new ensemble as an
93+
A central concept in Spring Cloud's Feign support is that of the named client. Each Feign client is part of an ensemble of components that work together to contact a remote server on demand, and the ensemble has a name that you give it as an application developer using the `@FeignClient` annotation. Spring Cloud creates a new ensemble as an
9494
`ApplicationContext` on demand for each named client using `FeignClientsConfiguration`. This contains (amongst other things) an `feign.Decoder`, a `feign.Encoder`, and a `feign.Contract`.
9595
It is possible to override the name of that ensemble by using the `contextId`
9696
attribute of the `@FeignClient` annotation.
9797

98-
Spring Cloud lets you take full control of the feign client by declaring additional configuration (on top of the `FeignClientsConfiguration`) using `@FeignClient`. Example:
98+
Spring Cloud lets you take full control of the Feign client by declaring additional configuration (on top of the `FeignClientsConfiguration`) using `@FeignClient`. Example:
9999

100100
[source,java,indent=0]
101101
----
@@ -136,7 +136,7 @@ Spring Cloud OpenFeign provides the following beans by default for feign (`BeanT
136136
* `Contract` feignContract: `SpringMvcContract`
137137
* `Feign.Builder` feignBuilder: `FeignCircuitBreaker.Builder`
138138
* `Client` feignClient: If Spring Cloud LoadBalancer is on the classpath, `FeignBlockingLoadBalancerClient` is used.
139-
If none of them is on the classpath, the default feign client is used.
139+
If none of them is on the classpath, the default Feign client is used.
140140

141141
NOTE: `spring-cloud-starter-openfeign` supports `spring-cloud-starter-loadbalancer`. However, as is an optional dependency, you need to make sure it has been added to your project if you want to use it.
142142

@@ -150,7 +150,7 @@ If you can not configure Apache HttpClient 5 by using properties, there is an `H
150150

151151
TIP: Starting with Spring Cloud OpenFeign 4, the Feign Apache HttpClient 4 is no longer supported. We suggest using Apache HttpClient 5 instead.
152152

153-
Spring Cloud OpenFeign _does not_ provide the following beans by default for feign, but still looks up beans of these types from the application context to create the feign client:
153+
Spring Cloud OpenFeign _does not_ provide the following beans by default for feign, but still looks up beans of these types from the application context to create the Feign client:
154154

155155
* `Logger.Level`
156156
* `Retryer`
@@ -223,7 +223,7 @@ spring:
223223
`feignName` in this example refers to `@FeignClient` `value`, that is also aliased with `@FeignClient` `name` and `@FeignClient` `contextId`. In a load-balanced scenario, it also corresponds to the `serviceId` of the server app that will be used to retrieve the instances. The specified classes for decoders, retryer and other ones must have a bean in the Spring context or have a default constructor.
224224

225225

226-
Default configurations can be specified in the `@EnableFeignClients` attribute `defaultConfiguration` in a similar manner as described above. The difference is that this configuration will apply to _all_ feign clients.
226+
Default configurations can be specified in the `@EnableFeignClients` attribute `defaultConfiguration` in a similar manner as described above. The difference is that this configuration will apply to _all_ Feign clients.
227227

228228
If you prefer using configuration properties to configure all `@FeignClient`, you can create configuration properties with `default` feign name.
229229

@@ -247,7 +247,7 @@ If we create both `@Configuration` bean and configuration properties, configurat
247247
It will override `@Configuration` values. But if you want to change the priority to `@Configuration`,
248248
you can change `spring.cloud.openfeign.client.default-to-properties` to `false`.
249249

250-
If we want to create multiple feign clients with the same name or url
250+
If we want to create multiple Feign clients with the same name or url
251251
so that they would point to the same server but each with a different custom configuration then
252252
we have to use `contextId` attribute of the `@FeignClient` in order to avoid name
253253
collision of these configuration beans.
@@ -763,7 +763,7 @@ public class Params {
763763
}
764764
----
765765

766-
The following feign client uses the `Params` class by using the `@SpringQueryMap` annotation:
766+
The following Feign client uses the `Params` class by using the `@SpringQueryMap` annotation:
767767

768768
[source,java,indent=0]
769769
----

docs/pom.xml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,24 @@
3030
<micrometer-docs-generator.inclusionPattern>.*</micrometer-docs-generator.inclusionPattern>
3131
<micrometer-docs-generator.outputPath>${maven.multiModuleProjectDirectory}/docs/modules/ROOT/partials/</micrometer-docs-generator.outputPath>
3232
</properties>
33-
<!-- <dependencies>
34-
<dependency>
35-
<groupId>${project.groupId}</groupId>
36-
<artifactId>spring-cloud-starter-openfeign</artifactId>
37-
</dependency>
38-
</dependencies> -->
3933
<build>
4034
<sourceDirectory>src/main/asciidoc</sourceDirectory>
4135
</build>
4236
<profiles>
37+
<profile>
38+
<id>enable-configuration-properties</id>
39+
<activation>
40+
<property>
41+
<name>!disableConfigurationProperties</name>
42+
</property>
43+
</activation>
44+
<dependencies>
45+
<dependency>
46+
<groupId>${project.groupId}</groupId>
47+
<artifactId>spring-cloud-starter-openfeign</artifactId>
48+
</dependency>
49+
</dependencies>
50+
</profile>
4351
<profile>
4452
<id>docs</id>
4553
<build>

0 commit comments

Comments
 (0)