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