title: Spring Boot RestTemplate deserialization issue
body: <p>I have following Class</p>
  
  <pre><code>public class RestResponseDto {
  
      private Boolean status;
      private Object data;
      private Object error;
  
  
      public RestResponseDto(Boolean status, Object data, Object error) {
          this.status = status;
          this.data = data;
          this.error = error;
      }
  
           //Getters and setters
  
  }
  </code></pre>
  
  <p>I am trying to hit my another REST API (GET REQUEST) and map the response to this Class.</p>
  
  <pre><code>RestTemplate restTemplate = new RestTemplate();
          RestResponseDto result = restTemplate.getForObject(uri, RestResponseDto.class);
  </code></pre>
  
  <p>But I am getting the following error :</p>
  
  <pre><code>Failed to read HTTP message: org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Can not construct instance of xxx.xxx.xxx.xxx: no suitable constructor found, can not deserialize from Object value (missing default constructor or creator, or perhaps need to add/enable type information?);
  </code></pre>