No Suitable HttpMessageConverter Found For Response Type - Custom RestTemplate
First, sorry for possible duplicate. I found some questions regarding to similar problems. However, I still can't figure out what's wrong in my specific case. So, example json from
Solution 1:
So, I finally figured it out. There is array in json, so I want to map it to Mall[], not Mall. I provided wrong class, there should be:
RestTemplateJSON restTemplate = new RestTemplateJSON();
restTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter());
Mall[] malls = restTemplate.getForObject(url, Mall[].class);
Post a Comment for "No Suitable HttpMessageConverter Found For Response Type - Custom RestTemplate"