From 684fe4bf4ecf720e82bbcf06a80dec0bd47164b8 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Thu, 26 Jan 2017 16:45:50 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-netflix.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-netflix.html b/spring-cloud-netflix.html index e4961982c..d4378eb9a 100644 --- a/spring-cloud-netflix.html +++ b/spring-cloud-netflix.html @@ -1662,14 +1662,14 @@ public interface StoreClient {

In this case the client is composed from the components already in FeignClientsConfiguration together with any in FooConfiguration (where the latter will override the former).

-
+
-
Warning
+
Note
-The FooConfiguration has to be @Configuration but take care that it is not in a @ComponentScan for the main application context, otherwise it will be used for every @FeignClient. If you use @ComponentScan (or @SpringBootApplication) you need to take steps to avoid it being included (for instance put it in a separate, non-overlapping package, or specify the packages to scan explicitly in the @ComponentScan). +FooConfiguration does not need to be annotated with @Configuration. However, if it is, then take care to exclude it from any @ComponentScan that would otherwise include this configuration as it will become the default source for feign.Decoder, feign.Encoder, feign.Contract, etc., when specified. This can be avoided by putting it in a separate, non-overlapping package from any @ComponentScan or @SpringBootApplication, or it can be explicitly excluded in @ComponentScan.