The Maven Package's jar server runtime could not find the class.

The Maven Package's jar server runtime could not find the class.
question :

After Maven locally packs the project into a jar package, the deployment server reports an error when it runs. The exception may be that some class files cannot be retrieved.


solve:

After checking the abnormal file, it is found that it is a file in the public package, indicating that the packaging project does not depend on the latest public package file. Check below:
unzip the jar package and you will see the boot-inf file ( the boot-inf directory is the maven provided by us using spring Plug-in package )

BOOT-INF\lib      

The inspection found that the date of the public package in the lib package is not the latest version, it should be that the step of public package installation is missing. The problem is solved!

Guess you like

Origin blog.csdn.net/AKALXH/article/details/130684305
Recommended