code: public static void createZip(String sourcePath, String zipPath) {
          FileOutputStream fos = null;
          ZipOutputStream zos = null;
          try {
              fos = new FileOutputStream(zipPath);
              zos = new ZipOutputStream(fos);
              writeZip(new File(sourcePath), "", zos);
          } catch (FileNotFoundException e) {
              LOG.error("创建ZIP文件失败",e);
          } finally {
              try {
                  if (zos != null) {
                      zos.close();
                  }
              } catch (IOException e) {
                  LOG.error("创建ZIP文件失败",e);
              }
  
          }
      }
docs: 创建ZIP文件
  @param sourcePath 文件或文件夹路径
  @param zipPath 生成的zip文件存在路径（包括文件名）