Skip to content

Commit

Permalink
Document issues when using Spring FactoryBean and Spring Cloud OpenFe…
Browse files Browse the repository at this point in the history
…ign Clients. Fixes gh-1009.
  • Loading branch information
OlgaMaciaszek committed Jul 3, 2024
1 parent da680ac commit 7ec374f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/modules/ROOT/pages/spring-cloud-openfeign.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ Spring Cloud OpenFeign supports all the features available for the blocking mode
TIP: To use `@EnableFeignClients` annotation on `@Configuration`-annotated-classes, make sure to specify where the clients are located, for example:
`@EnableFeignClients(basePackages = "com.example.clients")`
or list them explicitly:
`@EnableFeignClients(clients = InventoryServiceFeignClient.class)`
`@EnableFeignClients(clients = InventoryServiceFeignClient.class)`.

WARNING: Since `FactoryBean` objects may be instantiated before the initial context refresh should take place, and the instantiation of Spring Cloud OpenFeign Clients triggers a context refresh, they should not be declared within `FactoryBean` classes.

[[attribute-resolution-mode]]
==== Attribute resolution mode
Expand Down

0 comments on commit 7ec374f

Please sign in to comment.