I'm getting a simple json response and wanted to map it as follows to a pojo:
ResponseEntity<JsonEntity> response = new RestTemplate().getForEntity(url, JsonEntity.class);
@JsonIgnoreProperties(ignoreUnknown = true)
public class JsonEntity {
//@JsonProperty getter + setter...
}
But I'm just getting the following exception. What might be missing?
org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class JsonEntity] and content type [application/octet-stream]