Skip to content

Commit

Permalink
document requirements for decoders (+ others) specified via class in …
Browse files Browse the repository at this point in the history
…the config

These requirements arise from the behavior of `.FeignClientFactoryBean.getOrInstantiate`
  • Loading branch information
AlexElin authored and OlgaMaciaszek committed Sep 26, 2023
1 parent 835b9b5 commit 7ee6246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/spring-cloud-openfeign.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ feign:
queryMapEncoder: com.example.SimpleQueryMapEncoder
metrics.enabled: false
----
`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.
`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.


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.
Expand Down

0 comments on commit 7ee6246

Please sign in to comment.