出现原因:
替换或添加项目中某个引用jar,又不想将整个项目重新打包。启动后报如下错误信息:
Caused by: java.lang.IllegalStateException: Unable to open nested entry 'BOOT-INF/lib/**.jar'.
It has been compressed and nested jar files must be stored without compression.
Please check the mechanism used to create your executable jar file
解决方式:
1、通过linux命令将jar解压:
jar -xvf *.jar
2、将需要替换或添加的jar放入文件中;
3、重新压缩:
jar -cfM0 *.jar ./(./为需要压缩的文件路径)