From e7956e199e545aa4844be917e744cc3fcefa38b3 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Thu, 18 Dec 2014 12:04:27 -0700 Subject: [PATCH] updated feign docs to use new @FeignClient* fixes gh-111 --- docs/src/main/asciidoc/spring-cloud-netflix.adoc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-netflix.adoc b/docs/src/main/asciidoc/spring-cloud-netflix.adoc index ba1b0a93..1b61f82e 100644 --- a/docs/src/main/asciidoc/spring-cloud-netflix.adoc +++ b/docs/src/main/asciidoc/spring-cloud-netflix.adoc @@ -416,12 +416,8 @@ Example spring boot app @ComponentScan @EnableAutoConfiguration @EnableEurekaClient -public class Application extends FeignConfiguration { - @Bean - public StoreClient storeClient() { - //loadBalance plugs Feign into ribbon. feign() works without load balancing. - return loadBalance(StoreClient.class, "http://stores"); - } +@FeignClientScan +public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); @@ -433,6 +429,7 @@ public class Application extends FeignConfiguration { .StoreClient.java [source,java,indent=0] ---- +@FeignClient("stores") public interface StoreClient { @RequestMapping(method = RequestMethod.GET, value = "/stores") List getStores();