title: Grails RestfulController not recieving data from rest teamplate on a post (SAVE)
body: <p>i have a grails rest interface that extends extends RestfulController.  When i dont override any methods and my code looks like this:</p>
  
  <pre><code>class UserController extends RestfulController&lt;User&gt; {
  
     static responseFormats = ["json"]
  
      UserController() {
          super(User)
      }
  }
  </code></pre>
  
  <p>Wit the above code i can post via resttemplate and via curl without problems</p>
  
  <pre><code>_restTemplate.exchange(url, httpMethod, httpEntity, clazz, id)
  </code></pre>
  
  <p>once i override some of the rest controller like the code below my resttemplate.exchange no longer works.  i am not seeing a user object being passed into the controller (checking via debug). Using a curl post i see an object being passed to the controller.  i can successfully use a GET via curl and the restTemplate.echange</p>
  
  <pre><code>class UserController extends RestfulController&lt;User&gt; {
  
      static responseFormats = ["json"]
  
      UserController() {
          super(User)
      }
      @Transactional
      def save(User user) {
          user.save(flush: true)
          render(model: user, status: 201) as JSON
      }
  }
  </code></pre>
  
  <p>my headers and template are built like so: </p>
  
  <pre><code>private List&lt;HttpMessageConverter&lt;?&gt;&gt; getMessageConverters() {
      List&lt;HttpMessageConverter&lt;?&gt;&gt; converters = new ArrayList&lt;HttpMessageConverter&lt;?&gt;&gt;();
      converters.add(new MappingJackson2HttpMessageConverter());
      return converters;
  }
  
  private HttpHeaders getHeaders() {
      HttpHeaders headers = new HttpHeaders();
      headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));
      headers.setContentType((MediaType.APPLICATION_JSON));
      return headers;
  }
  
  private RestTemplate getTemplate() {
      RestTemplate restTemplate = new RestTemplate();
      restTemplate.setMessageConverters(getMessageConverters());
      restTemplate.setErrorHandler(new CustomResponseErrorHandler());
      return restTemplate;
  }
  </code></pre>
  
  <p>the error message i recieve when post from the resttemplate.exchange is:</p>
  
  <pre><code>An unexpected error occurredorg.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class receiptbucketserver.User] and content type [text/html;charset=UTF-8]
  </code></pre>
  
  <p>any ideas???</p>