title: Adding headers to postForObject() method of RestTemplate in spring
body: <p>I am calling web service using below method.</p>
  
  <pre><code>ResponseBean responseBean = getRestTemplate()
      .postForObject(url, customerBean, ResponseBean.class);
  </code></pre>
  
  <p>Now my requirement got changed. I want to send 2 headers with the request.
  How should I do it?</p>
  
  <p>Customer bean is a class where which contain all the data which will be used as request body.</p>
  
  <p>How to add headers in this case?</p>