下载的文件名

xiaoxiao2021-07-04  206

 

 

设置下载文件名跟保存的名字一样

response.setHeader("Content-Disposition", "attachment;filename="+URLEncoder.encode(file.getName(),"UTF-8"));

转载请注明原文地址: https://www.6miu.com/read-4821306.html

最新回复(0)