Java相关

设置下载文件的文件名

 response.setContentType("application/x-excel");

//response.setContentType("application/vnd.ms-excel");

response.setHeader("Content-Disposition", "attachment; filename="+"xxx.xls");

你可能感兴趣的:(Java相关)