• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

下载文件到SSM的指定位置


Recommended Posts

SSM中下载文件到指定位置

后端代码中的请求标头设置

response . set header(' Content-Disposition ','附件;Filename='新字符串(' test table.xls ')。getbytes(),' ISO-8859-1 ');

response . set content type(' application/x-excel;charset=UTF-8 ');

前端浏览器设置

image-20220503194452481

image-20220503194548057

注意:如果步骤2中的开关没有打开,它将是默认路径。

Link to comment
Share on other sites