[Solved] SpringBoot Project Package to jar Error: ClassNotFound…

After the springboot project is packaged as a jar, it is reported to find the main method, classnotfound

Add the following plug-in to the POM of the modules that report the error.

           <!-- If you don't add this parameter to the jar package, it will report that the main method was not found. -->

Similar Posts: