摘要:object 转为JSONobject, 使用fastjson JSONObject jsonObject = (JSONObject) JSONObject.toJSON(valueObject); JSONobject转为map JSONObject jsonObject = (JSONObje
阅读全文
摘要:// 读取文本中所有内容 String path="D:\\Desktop\接口\\postman\\jsonArray.txt"; List<String> lines = Files.readAllLines(Paths.get(path), StandardCharsets.UTF_8); S
阅读全文
摘要:使用JSONObject 1、需要解析的json串 { "retCode":0, "retMSg":"成功", "data":[ { "name":"李雷", "id":"001", "score":{ "Chinese":"80", "Math":"95" }, "schoolInfo": [ {
阅读全文
摘要:1、使用Files.lines() 方法,逐行读取,然后拼接 // 读取 String interfaceTxtPath="D:\\基础.postman_collection.json"; List<String> lines = Files.readAllLines(Paths.get(inter
阅读全文
摘要:1)查看网卡名称,使用: ifconfig 或者ip link 2)进入netplan目录 cat /etc/netplan 3) 编辑 网络配置文件 vim 01-network-manager-all.yaml 4) 编辑内容如下 network: ethernets: ens160: dhcp
阅读全文
摘要:1、将插件添加到chrome 链接:https://chromewebstore.google.com/detail/postman-interceptor/aicmkgpgakddgnaphhhpliifpcfhicfo 2、登录插件 (这是最重要的一步,登录后,才可以实现与postman 客户端
阅读全文