Skip to content

Instantly share code, notes, and snippets.

@ssouris
Created February 10, 2016 15:34
Show Gist options
  • Select an option

  • Save ssouris/e1f74153da023d76d2a1 to your computer and use it in GitHub Desktop.

Select an option

Save ssouris/e1f74153da023d76d2a1 to your computer and use it in GitHub Desktop.

Revisions

  1. ssouris created this gist Feb 10, 2016.
    5 changes: 5 additions & 0 deletions IntroToRestTemplateWorkWithListOfThings.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    RestTemplate restTemplate = new RestTemplate();

    ParameterizedTypeReference<List<String>> listOfStrings = new ParameterizedTypeReference<List<String>>() {};

    ResponseEntity<List<String>> response = restTemplate.exchange(baseUrl,HttpMethod.GET,null,listOfStrings);