摘要: 1.yum install libxml2 安装类库 2.xmllint --xpath "/books/book[@id=2]/text()" 获得目标标签值 <books> <book id="1"> <name>book1</name> <price>100</price> </book> < 阅读全文
posted @ 2021-06-29 19:56 红嘴鲤鱼 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 链式调用: public class JunitTest { @Test public void test1() { //1. 组建请求json参数 JSONObject json = new JSONObject(); json.put("appkey", "2e351b12c5030"); js 阅读全文
posted @ 2021-06-29 11:00 红嘴鲤鱼 阅读(3047) 评论(0) 推荐(0) 编辑