public static void compressZip1(HashMap<String,File> map, String rootPath, String zipFileName) throws FileNotFoundException { FileOutputStream fileOutputStream = new FileOutputStream(zipFileName); ZipOutputStream zipOutputStream = new ZipOutputStream(new FileOutputStream(rootPath)); try { for (Map.Entry<String, File> entry : map.entrySet()) { String fileName = entry.getKey(); // 获取文件名 File file = entry.getValue(); // 获取文件 FileInputStream fileInputStream = new FileInputStream(file);...