springboot导出文件名称乱码

这样修改后,除了火狐浏览器之外其他浏览器都正常。

fileName = URLEncoder.encode(fileName,"utf-8").replaceAll("\+", "%20");

文件上传下载编写:参考https://www.jianshu.com/p/85017f5ecba1

原文地址:https://www.cnblogs.com/webttt/p/11598795.html