response.addHeader("Content-Disposition", "attachment; filename=" + response.encodeURL(downloadfile));
使用Servlet实现文件下载的时候,避免浏览器自动打开文件
最新推荐文章于 2019-07-03 10:13:00 发布
response.addHeader("Content-Disposition", "attachment; filename=" + response.encodeURL(downloadfile));