WebSphere don't load previous classes ( com.fasterxml.jackson.core.JsonGenerator
and com.fasterxml.jackson.databind.ObjectMapper
) of RestTemplate
for do a REST call with customize class to catch JSON in response. Now I'm trying to find an alternative to RestTemplate
for do REST call. Anyone have an idea?
This is my actually code but don't load previous classes so don't match JSON
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<Person> restResponse = restTemplate.getForEntity(providerUrl, Person.class);
Did you consider the following:
ResponseEntity<String> restResponse = restTemplate.getForEntity(providerUrl, String.class);
Then parse the response body yourself?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.