Map<String, String> param = new HashMap<>();
param.put("key", "value");
DataResult result = restTemplate.exchange(
path,
HttpMethod.GET,
new HttpEntity<>(param, null),
new ParameterizedTypeReference<DataResult>() {
},
param
).getBody();