title: springboot could not found feignclient
body: <p>ERROR INFO LIKE BELOW:</p>
  
  <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  Field helloAgent in com.example.client.controller.Hello required a bean of 
  type 'com.example.common.agent.HelloAgent' that could not be found.
  
  Action:
  
  Consider defining a bean of type 'com.example.common.agent.HelloAgent' in 
  your configuration.
  </code></pre>
  
  <h2>project structure:</h2>
  
  <p>module: test-client as feignclient caller.</p>
  
  <p>module: test-server as feignclient interface implementation.</p>
  
  <p>module: test-common put all feignclient together.</p>
  
  <h2>test-common:</h2>
  
  <pre><code>package com.example.common.agent;
  @FeignClient("hello")
  public interface HelloAgent {
      @GetMapping("/hello")
      String hello(@RequestParam String msg);
  }
  </code></pre>
  
  <h2>test-server:(works fine)</h2>
  
  <pre><code>package com.example.server.controller;
  
  @RestController
  public class Hello implements HelloAgent {
      @Override
      public String hello(@RequestParam String msg) {
          System.out.println("get " + msg);
          return "Hi " + msg;
      }
  }
  </code></pre>
  
  <h2>test-client:</h2>
  
  <pre><code>package com.example.client.controller;
  
  @RestController
  public class Hello {
      @Autowired
      private HelloAgent helloAgent;
  
      @GetMapping("/test")
      public String test() {
          System.out.println("go");
          String ret = helloAgent.hello("client");
          System.out.println("back " + ret);
          return ret;
      }
  }
  ----------------------------
  @EnableEurekaClient
  @EnableFeignClients
  @SpringBootApplication
  @ComponentScan(basePackages = {"com.example.common.agent","com.example.client.controller"})
  public class TestClientApplication {
      public static void main(String[] args) {
          SpringApplication.run(TestClientApplication.class, args);
      }
  }
  </code></pre>
  
  <p>Is there anyway to put all feignclient together so that we can manage them gracefully?</p>
  
  <p>Or there is only way to use them redundancy?</p>
  
  <p>THANKS!</p>