title: How to change response http header in get request by spring RestTemplate?
body: <p>I have simple java spring method for creating object</p>
  
  <pre><code>RestTemplate restTemplate = new RestTemplate();
  Address address = restTemplate.getForObject(url, Address.class);
  </code></pre>
  
  <p>But the server responds me JSON string with wrong <em>Content-Type:</em> <strong>text/plain</strong> instead of <strong>application/json</strong> (checked in Postman). And I get the exception: </p>
  
  <blockquote>
    <p>Could not extract response: no suitable HttpMessageConverter found for response type [class Address] and content type [text/plain;charset=utf-8]</p>
  </blockquote>
  
  <p>So I think, I need change response header <em>Content-Type</em> to right <strong>application/json</strong>, that MappingJackson2HttpMessageConverter find out JSON string and run code as well.</p>