@RequestMapping("/toDowmNoteBygid")
public void toDowmNoteBygid(List<Notes> urls , HttpServletRequest request,HttpServletResponse response, PrintWriter pw) {
String gname="下载保存文件名"
response.reset();
response.setCharacterEncoding("utf-8");
response.setContentType("multipart/form-data");
String downloadName = gname+".zip";
String agent = request.getHeader("USER-AGENT");
try {
if (agent.contains("MSIE") || agent.contains("Trident")) {
downloadName = java.net.URLEncoder.encode(downloadName, "UTF-8");
} else {
downloadName = new String(downloadName.getBytes("UTF-8"), "ISO-8859-1");
}
} catch (Exception e) {
e.printStackTrace();
}
response.setHeader("Content-Disposition", "attachment;fileName=\"" + downloadName + "\"");
ZipOutputStream zipos = null;
try