Search results
Retrieve a list of entities from RESTful APIs with RestTemplate and ParameterizedTypeReference
HttpEntity<Void> request = new HttpEntity<>(headers);
ResponseEntity<List<User>> users = this.restTemplate.exchange(
  "http://localhost:8080/users",
  HttpMethod.GET,
  request,
  new ParameterizedTypeReference<List<User>>(){}
);
return users.getBody;
 Also related to this page: 
Recipe to configure a single RestTemplate Bean with Apache HttpClient 5 Connection Pool
  Recipe to configure a single RestTemplate Bean with Apache HttpClient 5 Connection Pool
