response.setContentType("application/x-download;charset=UTF-8");
response.addHeader("Content-disposition", "filename="
+ backName+".zip");
for(String filename:names){
File file=new File(realPathResolver.get(filename));
fileEntrys.add(new FileEntry("", "", file));
}
try {
// 模板一般都在windows下编辑,所以默认编码为GBK
Zipper.zip(response.getOutputStream(), fileEntrys, "GBK");
} catch (IOException e) {