#simple 直接上代码
①pom文件导入hutool的war包
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.3.10</version>
</dependency>
②new JSONObject(); 对象, put你所需要的内容 (注释请忽略) post请求填写访问路径,header有就写没有就不写,body里面传参,最后execute执行
JSONObject json = new JSONObject();
json.put("pageNum", "1");//内容
json.put("pageSize", "10");
json.put("jobno", "2013123");
//JSONObject jsons = new JSONObject();
//jsons.put("userId", account);
//JSONArray arr = new JSONArray();
//arr.add(jsons);
//json.put("receivers",arr);
String post = HttpRequest.post(Url)
.header("token","123456").body(json.toString()).execute().body();