Skip to content

Commit

Permalink
Add info on multi-module projects. Fixes gh-1053.
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaMaciaszek committed Sep 6, 2024
1 parent 0333ed1 commit 187034d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/modules/ROOT/pages/spring-cloud-openfeign.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ TIP: To use `@EnableFeignClients` annotation on `@Configuration`-annotated-class
or list them explicitly:
`@EnableFeignClients(clients = InventoryServiceFeignClient.class)`.

In order to load Spring Feign client beans in a multi-module setup, you need to specify the packages directly.

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

0 comments on commit 187034d

Please sign in to comment.