81,116
社区成员
发帖
与我相关
我的任务
分享out.clearBuffer();
String filename="test.csv";
response.addHeader("Content-Disposition", new String(("attachment; filename=" + filename).getBytes("GBK"), "ISO-8859-1"));
response.setContentType("application/vnd.ms-excel");
// 后面输出你的字符串吧