上传时:String fileNameStr= Base64.encodeBase64String(fileName.getBytes());
下载时:// 解决文件名中文乱码 response.setCharacterEncoding("UTF-8"); fileName = URLEncoder.encode(fileName, "UTF-8");
可以借鉴 https://blog.csdn.net/weixin_41922349/article/details/106533105 希望对你有帮助