title: How could I get @FeignClient bean when spring boot application initializing
body: <p>I need use a bean inject with @Component @FeignClient(name = "xxx") when my spring boot application initializing, but it always throws exception like this:</p>
  
  <pre><code>20180706 10:18:40,043  WARN [main] 
  [org.springframework.context.annotation.AnnotationConfigApplicationContext] 
  Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'feignContract' defined in org.springframework.cloud.netflix.feign.FeignClientsConfiguration: Unsatisfied dependency expressed through method 'feignContract' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feignConversionService' defined in org.springframework.cloud.netflix.feign.FeignClientsConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method 'feignConversionService' threw exception; nested exception is java.lang.StackOverflowError
  </code></pre>
  
  <p>my feignClient code:</p>
  
  <pre><code>@Component
  @FeignClient(name = "domain-account")
  public interface IDomainService {
      @RequestMapping(value = "/userInfos", method = RequestMethod.GET)
      public String getUserInfos(@QueryMap Map&lt;String, Object&gt; condition);
  }
  </code></pre>
  
  <p>ApplicationListenner code:</p>
  
  <pre><code>public class GlobalInit implements ApplicationListener&lt;ContextRefreshedEvent&gt; {
  @Override
  public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
      System.out.println("======== GlobalInit ========");
      IDomainService domainService = contextRefreshedEvent.getApplicationContext().getBean(IDomainService.class);
      System.out.println("*********************" + domainService);
      GlobalInitManager.getInstance().doInit();
  }
  </code></pre>
  
  <p>}</p>