So if you just have one object you can do:
What about if the object coming across the wire is a List<Mine.class> how would you write that?Code:Mine m = restTemplate(getForObject(url, Mine.class);
So if you just have one object you can do:
What about if the object coming across the wire is a List<Mine.class> how would you write that?Code:Mine m = restTemplate(getForObject(url, Mine.class);
Hi, we are working on merging in changes from Spring 3.2, which will include generics support in RestTemplate requests. For now, this can be accomplished using arrays.
Code:ResponseEntity<Mine[]> responseEntity = restTemplate.getForEntity(url, Mine[].class);
Roy Clarkson
Spring Mobile Projects Lead