标签:code post fastjson index string http seo tin etc
String post = HttpClientUtils.httpPost(martinUrl + "index/status",new HashMap<>());
JSONObject object = JSON.parseObject(post);
String jsonString = object.getJSONArray("data").toJSONString();
List<MartinResVo> list = JSON.parseArray(jsonString, MartinResVo.class);
list.forEach(x->{
x.setChineseDesc(IndexNameEnum.getDescByAlias(x.getIndexAlias()));
});
res.setData(list);
标签:code post fastjson index string http seo tin etc
原文地址:https://www.cnblogs.com/BBchao/p/9516165.html