SpringMVC生成Excel和PDF文件:http://blog.csdn.net/u011712163/article/details/54944468
解决下载的文件名为中文时的乱码问题:
//将代码
response.setHeader("Content-Disposition", "attachment; filename=" + URLEncoder.encode(excelName, "UTF-8"));
//修改为
response.setHeader("Content-Disposition", "attachment;filename=" + new String(excelName.getBytes("gbk"),"ISO-8859-1"));