摘要: 一边压缩一边下载,前端写法可以参考Java通过流下载文件以及相关优化 response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition", "attachment; filenam 阅读全文
posted @ 2022-04-08 17:30 昨夜风雨声 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1、基础版,通过Buffer缓冲流下载 final File file = new File(robotPath); response.setContentType("application/force-download"); response.addHeader("Content-Disposit 阅读全文
posted @ 2022-04-08 17:27 昨夜风雨声 阅读(55) 评论(0) 推荐(0) 编辑