title: Disable Hystrix for a single Feign client
body: <p>My SpringBoot app has Hystrix enabled with fallback defined for some of the Feign clients and undefined for the rest them.</p>
  <p>Now, I wanted to disable Hystrix for the ones that did not have a fallback defined as yet. So I followed the steps listed in [paragraph 7.4] <a href="https://cloud.spring.io/spring-cloud-netflix/multi/multi_spring-cloud-feign.html" rel="noreferrer">https://cloud.spring.io/spring-cloud-netflix/multi/multi_spring-cloud-feign.html</a> which is to create a separate Feign configuration with a vanilla Feign.Builder. However adding the new @Bean Feign.Builder disables my Hystrix functionality across all Feign clients which I don't want. If I remove the @Bean Feign.Builder, Hystrix fallback kicks in like usual in myhystrixclient. A similar SO question here <a href="https://stackoverflow.com/questions/55200113/how-to-disable-hystrix-in-one-of-multiple-feign-clients">How to disable hystrix in one of multiple feign clients</a> is still open. What am I doing wrong?</p>
  <pre><code>public class MyFeignClientConfiguration {
  
  @Bean
  public FeignErrorDecoder feignErrorDecoder() {
      return new FeignErrorDecoder();
  }
  
  @Bean
  @Scope(&quot;prototype&quot;)
  public Feign.Builder feignBuilder() {
      return Feign.builder();
  }
  }
  </code></pre>
  <p>My Feign Client looks like below:</p>
  <pre><code>@FeignClient(name = &quot;myregularclient&quot;, configuration = MyFeignClientConfiguration.class)
  public interface MyRegularClient {
  //my APIs here
  }
  </code></pre>
  <p>My Hystrix Feign Configuration looks like the below:</p>
  <pre><code>public class MyFeignClientHystrixConfiguration {
  
  @Bean
  public FeignErrorDecoder feignErrorDecoder() {
      return new FeignErrorDecoder();
  }
  }
  </code></pre>
  <p>And here is my Feign client where Hystrix fallback is implemented</p>
  <pre><code>@FeignClient(name = &quot;myhystrixclient&quot;, configuration = MyFeignClientHystrixConfiguration.class, fallback = MyFallbackService.class)
  public interface MyHystrixClient {
  //my APIs here
  }
  </code></pre>
  <p><strong>UPDATE</strong></p>
  <p>Adding my Application.java for further review of the component scan aspects.</p>
  <pre><code>@ComponentScan(basePackages =&quot;com.demo.xyz&quot;)
  @EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, 
  MetricFilterAutoConfiguration.class,         
  MetricRepositoryAutoConfiguration.class})
  @EnableDiscoveryClient
  @EnableFeignClients
  @EnableCircuitBreaker
  public class MyApplication {
  
  /** Start the app **/
  }
  </code></pre>