Created
February 19, 2020 17:26
-
-
Save iamvickyav/ac5391e12faa65efa8316872b84fa631 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<T> performRequest(ParameterizedTypeReference<List<T>> responseType) { | |
return restTemplate.exchange("http://www.mocky.io/v2/5e4d66ff2d0000309ec0df14", | |
HttpMethod.GET, null, responseType).getBody(); | |
} | |
performRequest(new ParameterizedTypeReference<List<User>>() {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment