Map<String, String > heads = new HashMap<>();
List<Co> CoList = new ArrayList<>();
heads = new HashMap<>();
heads.put("Content-Type", "application/json;charset=UTF-8");
HttpResponse response = HttpRequest.get("http://localhost:8082/acvb/Device/Co")
.headerMap(heads, false)
.body(JSONUtil.toJsonStr(CoList))
.timeout(5 * 60 * 1000)
.execute();
JSONObject jsonObject = JSONObject.parseObject(response.body());
CoList = BeanUtil.copyToList(jsonObject.getJSONArray("data"), Co.class);
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18