SpringBoot項目替換內部的依賴jar包


注意: 不能用winrar或7zip等普通解壓軟件鼠標拖入直接替換, 否則啟動報錯: 
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. (嵌套的jar必須直接存儲, 而不能壓縮) Please check the mechanism used to create your executable jar file
解決方法1: jar命令解壓, 替換后進行壓縮(參考: https://www.cnblogs.com/zhjh256/p/10986920.html) jar -xvf ./*.jar jar -cfM0 *.jar ./ 解決方法2: winrar或7zip添加文件的時候, 將選擇壓縮方式由"標准"改為存儲(Store) (參考: https://www.jianshu.com/p/9df4a0bb46be)

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM