From 45e975acc9d3c89ce983c169dc7d1efaafebabf3 Mon Sep 17 00:00:00 2001 From: Olga MaciaszekSharma Date: Fri, 15 Dec 2023 11:43:19 +0100 Subject: [PATCH] Add info on lack of support during bean initialisation phase. --- docs/src/main/asciidoc/spring-cloud-openfeign.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-openfeign.adoc b/docs/src/main/asciidoc/spring-cloud-openfeign.adoc index eabdc13d..d13d646b 100644 --- a/docs/src/main/asciidoc/spring-cloud-openfeign.adoc +++ b/docs/src/main/asciidoc/spring-cloud-openfeign.adoc @@ -804,8 +804,9 @@ Until that is done, we recommend using https://github.com/Playtika/feign-reactiv ==== Early Initialization Errors -Depending on how you are using your Feign clients you may see initialization errors when starting your application. -To work around this problem you can use an `ObjectProvider` when autowiring your client. +We discourage using Feign clients in the early stages of application lifecycle, while processing configurations and initialising beans. Using the clients during bean initialisation is not supported. + +Similarly, depending on how you are using your Feign clients, you may see initialization errors when starting your application. To work around this problem you can use an `ObjectProvider` when autowiring your client. [source,java,indent=0] ----