title: Spring Boot Admin Client can not be build
body: <p>I am trying to configure my Spring Boot app as Admin Client, but it can not be build after setting the following dependency:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-admin-starter-client&lt;/artifactId&gt;
          &lt;version&gt;2.1.6&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>When trying to build the app after setting this dependency in <code>pom.xml</code> I get following error:</strong></p>
  
  <pre><code>Description:
  </code></pre>
  
  <p>An attempt was made to call the method org.springframework.boot.web.client.RestTemplateBuilder.setConnectTimeout(Ljava/time/Duration;)Lorg/springframework/boot/web/client/RestTemplateBuilder; but it does not exist. Its class, org.springframework.boot.web.client.RestTemplateBuilder, is available from the following locations:</p>
  
  <pre><code>jar:file:/Users/sherzad/.m2/repository/org/springframework/boot/spring-boot/2.0.6.RELEASE/spring-boot-2.0.6.RELEASE.jar!/org/springframework/boot/web/client/RestTemplateBuilder.class
  </code></pre>
  
  <p>It was loaded from the following location:</p>
  
  <pre><code>file:/Users/sherzad/.m2/repository/org/springframework/boot/spring-boot/2.0.6.RELEASE/spring-boot-2.0.6.RELEASE.jar
  </code></pre>
  
  <p>Action:</p>
  
  <p>Correct the classpath of your application so that it contains a single, compatible version of org.springframework.boot.web.client.RestTemplateBuilder</p>
  
  <p><strong>I don´t know why it has two same RestTemplateBuilder...</strong></p>
  
  <p>How to fix this issue?</p>