From 187034dcc2c6d53be4ffbb40f40ebcffac6a09ca Mon Sep 17 00:00:00 2001 From: Olga Maciaszek-Sharma Date: Fri, 6 Sep 2024 17:45:30 +0200 Subject: [PATCH] Add info on multi-module projects. Fixes gh-1053. --- docs/modules/ROOT/pages/spring-cloud-openfeign.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/modules/ROOT/pages/spring-cloud-openfeign.adoc b/docs/modules/ROOT/pages/spring-cloud-openfeign.adoc index 258175d5..8a6d8449 100644 --- a/docs/modules/ROOT/pages/spring-cloud-openfeign.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-openfeign.adoc @@ -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]]