After the springboot project replaced the dependency package under lib with compression software, it began to report errors. The contents of the error report are as follows:
Reason:
When a jar package is replaced or imported, the jar package is automatically compressed, and springboot stipulates that nested jar packages cannot be stored under compressed conditions.
Solution (this article takes upgrading ojdbc package as an example):
Decompress the jar package with jar command, replace the jar package outside the compressed package, and then compress it.
Step 1: Unzip the jar package jar -xvf *.jar.
Step 2: Replace the jar package
Step 3: recompress the jar.