java脚本执行方法
标签:span test except void 脚本 cli bsp list tpc
@Test
public void modifyTest() throws IOException {
File file = new File("/Users/zl/pending file/修复数据.txt");
List list = FileUtils.readLines(file, StandardCharsets.UTF_8);
Map body;
Map header;
for (String s : list) {
String[] split = s.split("\\t");
CoreHttpClient coreHttpClient = CoreHttpClient.builder().build();
String url = "http://localhost:8080/vsd/bsadc/bd/rdasy/v1/apdsad-repaasy";
header = new HashMap(4);
header.put("unionId", split[1]);
body = new HashMap(4);
body.put("biz_order_no", split[0]);
String post = coreHttpClient.post(url, body, header);
System.out.println(post);
System.out.println("bizOrderNo:" + split[0] + ",unionId:" + split[1]);
}
}
java脚本执行方法
标签:span test except void 脚本 cli bsp list tpc
原文地址:https://www.cnblogs.com/lxk233/p/12714538.html
文章来自:
搜素材网的
编程语言模块,转载请注明文章出处。
文章标题:
java脚本执行方法
文章链接:http://soscw.com/index.php/essay/55679.html
评论