io
21-夜一
早上搬砖,晚上砌梦想
展开
-
org.apache.http.client.ClientProtocolException: null java.io.IOException: Attempted read from close
在写HTTPClient请求的时候,明明请求成功了,但是不知道为什么报错 /** * * @param file 文件 * @param url 请求到哪里url http://127.0.0.1:8080/upload * @param target 上传到哪里 e:/test/ * @return * @throws IOException */ @PostMapping("/test") .原创 2022-01-28 11:25:04 · 6250 阅读 · 1 评论 -
将数据库数据保存到txt文件
public void txt() throws IOException { SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHH"); String date = df.format(new Date()); String fileName = "strategySet_" + date + "_table.txt"; String txt = "E:\test\"+ fi...原创 2021-09-27 15:59:17 · 1367 阅读 · 2 评论