I\'m trying to marshal a list: List objects via the Spring Rest Template.
I can pass along simple Pojo objects, but I can\'t fi
In Spring 3.2 there is now support for generic types using the new exchange()-methods on the RestTemplate:
ParameterizedTypeReference> typeRef = new ParameterizedTypeReference>() {};
ResponseEntity> response = template.exchange("http://example.com", HttpMethod.GET, null, typeRef);
Works like a charm!