String fileName="智能客服运营日报-模板.xlsx";
response.setContentType("multipart/form-data;charset=UTF-8");
response.setHeader("Content-Disposition", "attachment; fileName="+ fileName +";filename*=utf-8''"+ URLEncoder.encode(fileName,"UTF-8"));
转载于:https://www.cnblogs.com/itniwota/p/10727775.html