Skip to content

Instantly share code, notes, and snippets.

@ssouris
Created February 10, 2016 15:34
Show Gist options
  • Save ssouris/e1f74153da023d76d2a1 to your computer and use it in GitHub Desktop.
Save ssouris/e1f74153da023d76d2a1 to your computer and use it in GitHub Desktop.
RestTemplate restTemplate = new RestTemplate();
ParameterizedTypeReference<List<String>> listOfStrings = new ParameterizedTypeReference<List<String>>() {};
ResponseEntity<List<String>> response = restTemplate.exchange(baseUrl,HttpMethod.GET,null,listOfStrings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment