title: RestTemplateBuilder is failed when building
body: <p>I created Rest Web service call using Rest Template and for basic authentication, I'm trying to use RestTemplateBuilder to build the basic authentication when sending request. I had given all spring boot dependencies:</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;1.4.0.RELEASE&lt;/version&gt;
      &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>final RestTemplate restTemplate = restTemplateBuilder
        .basicAuthorization("username", "password").build();
  restTemplate.postForObject("rest webservice url",inputparam, XXX.Class);
  </code></pre>
  
  <p>But even after giving the dependency also, build is failing.
  Can anyone help me on this?</p>