代码语言:javascript复制
ParameterizedTypeReference<List<ModelDto>> typeReference = new ParameterizedTypeReference<List<ModelDto>>() {};
ResponseEntity<List<ModelDto>> respEntity = this.restTemplate.exchange(
URL_MODELS,
HttpMethod.GET,
null,
typeReference
);