Skip to content

Commit 7ee6246

Browse files
AlexElinOlgaMaciaszek
authored andcommitted
document requirements for decoders (+ others) specified via class in the config
These requirements arise from the behavior of `.FeignClientFactoryBean.getOrInstantiate`
1 parent 835b9b5 commit 7ee6246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/main/asciidoc/spring-cloud-openfeign.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ feign:
199199
queryMapEncoder: com.example.SimpleQueryMapEncoder
200200
metrics.enabled: false
201201
----
202-
`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.
202+
`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.
203203

204204

205205
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.

0 commit comments

Comments
 (0)