升级spring-cloud到H版本

This commit is contained in:
zlt2000
2020-07-11 18:21:54 +08:00
parent 3d1239aca7
commit be4fa0872c
4 changed files with 10 additions and 10 deletions
@@ -81,7 +81,7 @@ public class IndexServiceImpl implements IIndexService {
List<Map<String, String>> listOfIndicesFromEs = null;
if (response != null) {
String rawBody = EntityUtils.toString(response.getEntity());
TypeReference<List<HashMap<String, String>>> typeRef = new TypeReference<List<HashMap<String, String>>>() {};
TypeReference<List<Map<String, String>>> typeRef = new TypeReference<List<Map<String, String>>>() {};
listOfIndicesFromEs = mapper.readValue(rawBody, typeRef);
}
return PageResult.<Map<String, String>>builder().data(listOfIndicesFromEs).code(0).build();