From ea0f7676cd1cf4c8dab52c4e27c03285d7d2e680 Mon Sep 17 00:00:00 2001 From: heibaiying <31504331+heibaiying@users.noreply.github.com> Date: Mon, 26 Aug 2019 10:40:39 +0800 Subject: [PATCH] Update README.md --- spring-cloud/spring-cloud-ribbon/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spring-cloud/spring-cloud-ribbon/README.md b/spring-cloud/spring-cloud-ribbon/README.md index e7ed1e7..d30f4e8 100644 --- a/spring-cloud/spring-cloud-ribbon/README.md +++ b/spring-cloud/spring-cloud-ribbon/README.md @@ -343,7 +343,10 @@ public class CustomConfiguration { 在使用代码方式时, [官方文档](http://cloud.spring.io/spring-cloud-netflix/multi/multi_spring-cloud-ribbon.html#_customizing_the_ribbon_client) 中有以下强调说明: ``` -The CustomConfiguration clas must be a @Configuration class, but take care that it is not in a @ComponentScan for the main application context. Otherwise, it is shared by all the @RibbonClients. If you use @ComponentScan (or @SpringBootApplication), you need to take steps to avoid it being included (for instance, you can put it in a separate, non-overlapping package or specify the packages to scan explicitly in the @ComponentScan). +The CustomConfiguration clas must be a @Configuration class, but take care that it is not in a @ComponentScan +for the main application context. Otherwise, it is shared by all the @RibbonClients. If you use @ComponentScan +(or @SpringBootApplication), you need to take steps to avoid it being included (for instance, you can put it +in a separate, non-overlapping package or specify the packages to scan explicitly in the @ComponentScan). ```