springboot项目lib添加jar包 It has been compressed and nested jar files must be stored without compression

这里写自定义目录标题

Unable to open nested entry ‘BOOT-INF/lib/mongodb-driver-3.11.1.jar’. It has been compressed and nested jar files must be stored without compression

步骤1:解压jar包 jar -xvf *.jar
步骤2:替换jar包
步骤3:重新压缩jar

 jar -cfM0 a.jar BOOT-INF/ META-INF/ org/

如果失效,winrar拖入文件选择存储
springboot项目lib添加jar包 It has been compressed and nested jar files must be stored without compression_第1张图片

你可能感兴趣的:(java)