title: ClassNotFoundException: com.netflix.config.CachedDynamicIntProperty for SpringBoot 2 ribbon starter
body: <p>There is <code>SpringBoot 2.1.4.RELEASE</code> application with spring-cloud-starter-netflix-ribbon 2.1.1.RELEASE dependency.</p>
  
  <p>Trying to run spring integration test (using <code>@SpringBootTest</code>) during test application startup such an exception is thrown: 
  <code>Caused by: java.lang.ClassNotFoundException:com.netflix.config.CachedDynamicIntProperty</code></p>
  
  <p>Maven cloud dependencies used in project:</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;2.1.4.RELEASE&lt;/version&gt;
  &lt;/parent&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;2.1.1.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-netflix-hystrix&lt;/artifactId&gt;
          &lt;version&gt;2.1.1.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-netflix-ribbon&lt;/artifactId&gt;
          &lt;version&gt;2.1.1.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Test property file:</p>
  
  <p><code>feign.hystrix.enabled=true
  eureka.client.enabled=false
  ribbon.eureka.enabled=false
  some-my-mocked-service.ribbon.listOfServers=localhost:${mocked.port}</code></p>
  
  <p>Exception:</p>
  
  <pre><code>Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.loadbalancer.ILoadBalancer]: Factory method 'ribbonLoadBalancer' threw exception; nested exception is java.lang.NoClassDefFoundError: Lcom/netflix/config/CachedDynamicIntProperty;
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
      at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
  </code></pre>