title: Spring Cloud disable Ribbon is not working with Netflix Zuul dependency
body: <p>We're using openfeign client in our spring application:</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
      &lt;artifactId&gt;spring-cloud-openfeign-core&lt;/artifactId&gt;
      &lt;version&gt;3.0.1&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
      &lt;artifactId&gt;spring-cloud-starter-openfeign&lt;/artifactId&gt;
      &lt;version&gt;3.0.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>and we're also using netflix zuul:</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
      &lt;artifactId&gt;spring-cloud-starter-netflix-zuul&lt;/artifactId&gt;
      &lt;version&gt;2.2.6.RELEASE&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>the problem now is that netflix-zuul requires spring-cloud-netflix-ribbon as a dependency, which makes the feignclient use the ribbon load balancer which throws an error because it's incompatible with the newest spring version:
  <code>org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient cannot be cast to class org.springframework.cloud.loadbalancer.blocking.client.BlockingLoadBalancerClient</code>.</p>
  <p>according to <a href="https://cloud.spring.io/spring-cloud-static/spring-cloud-openfeign/2.2.0.RC2/reference/html/" rel="nofollow noreferrer">https://cloud.spring.io/spring-cloud-static/spring-cloud-openfeign/2.2.0.RC2/reference/html/</a> the Spring load balancer should be used:</p>
  <blockquote>
  <p>In order to maintain backward compatibility, is used as the default
  load-balancer implementation. However, Spring Cloud Netflix Ribbon is
  now in maintenance mode, so we recommend using Spring Cloud
  LoadBalancer instead. To do this, set the value of
  spring.cloud.loadbalancer.ribbon.enabled to false.</p>
  </blockquote>
  <p>So tried to disable ribbon in the configuration yml but it's not working, feignclient is still using ribbon:</p>
  <pre><code>spring:
      cloud:
          loadbalancer:
              ribbon:
                  enabled: false
  </code></pre>
  <p>I found another answer here:  <a href="https://stackoverflow.com/a/51511614/1264616">https://stackoverflow.com/a/51511614/1264616</a>, which says that you need to define the bean for the client in the feign configuration like this:</p>
  <pre><code>@Bean
  public Client feignClient() {
      return new Client.Default(null, null);
  }
  </code></pre>
  <p>I did that and it is working now, however I've no idea what this default client actually does and if it will break some of the configuration etc... so I'm really not sure if that's a solution or not. I'm also wondering, why the spring configuration <code>spring.cloud.loadbalancer.ribbon.enabled=false</code> does not do anything at all.</p>
  <p>Perhaps I need to wait for an zuul update (which might not happen)?</p>
  <p>I'm using spring cloud 2020.0.1 and spring boot 2.4.2</p>