title: POST JSON object using Spring REST template
body: <p>I am posting JSON object using spring rest template. It works fine for less data, but posting more data throws a Request URI too long error.</p>
  
  <pre><code>       final String url = getServiceUrl() + "/rs/doc?param1=test";
  
          RestTemplate restTemp=getRestTemplate();
  
          HttpHeaders headers = new HttpHeaders();
          headers.setContentType(org.springframework.http.MediaType.APPLICATION_JSON);
  
          //set your entity to send
          HttpEntity&lt;MyBean&gt; request = new HttpEntity&lt;MyBean&gt;(myBean,headers);
  
          List&lt;HttpMessageConverter&lt;?&gt;&gt; messageConverters = new ArrayList&lt;HttpMessageConverter&lt;?&gt;&gt;();
          messageConverters.add(new MappingJacksonHttpMessageConverter());
          messageConverters.add(new FormHttpMessageConverter());
          restTemp.getMessageConverters().addAll(messageConverters);
  
          // send it!
          responseEntity = restTemp.exchange(url, HttpMethod.POST, request, String.class);
  </code></pre>
  
  <p>The request body should accept unlimited data in POST method. But that doesn't seem to work here. Can someone please guide.</p>