title: RestTemplate not working with APPLICATION_FORM_URLENCODED and Request Pojo
body: <p>I am using restTemplate to consume a service.</p>
  
  <pre><code>HttpHeaders headers = new HttpHeaders();
  headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
  HttpEntity request = new HttpEntity(countryRequest, headers);                  
  CountryResponse response = restTemplate.postForObject(countryURL, request, CountryResponse.class);
  </code></pre>
  
  <p><code>countryRequest</code> is a object of a POJO with just a string field <code>code</code>. 
  <code>restTemplate</code> has <code>jackson2HttpMessageConverter</code> and <code>FormHttpMessageConverter</code> in <code>messageConverters</code>.</p>
  
  <p>I am getting the following exception :</p>
  
  <pre><code>org.springframework.web.client.RestClientException: 
    Could not write request: no suitable HttpMessageConverter found for request type [CountryRequest] and content type [application/x-www-form-urlencoded]
  </code></pre>
  
  <p>But if I use <code>MultiValueMap</code> instead of <code>CountryRequest</code>, I got the 200 response:</p>
  
  <pre><code>MultiValueMap&lt;String, String&gt; map= new LinkedMultiValueMap&lt;&gt;();
  map.add(code, "usa");
  HttpEntity&lt;MultiValueMap&lt;String, String&gt;&gt; request = new HttpEntity(map, headers);
  </code></pre>
  
  <p>Is there any way to replace the <code>MultiValueMap</code> approach here?</p>