摘要:
一边压缩一边下载,前端写法可以参考Java通过流下载文件以及相关优化 response.setContentType("application/octet-stream"); response.setHeader("Content-Disposition", "attachment; filenam 阅读全文
摘要:
1、基础版,通过Buffer缓冲流下载 final File file = new File(robotPath); response.setContentType("application/force-download"); response.addHeader("Content-Disposit 阅读全文