Run-time items labeled Jar package SpringBoot

Use java -jar ***. Time to execute jar jar package, will find main () method jar package.

For Jar package SpringBoot projects in the MANIFEST.MF file in the META-INF directory, Main-Class: org.springframework.boot.loader.JarLauncher is SpringBoot generated classes, Start-Class: com.example.mymiaosha4.Mymiaosha4Application We run our own class. When executing java -jar ***. Jar command, you will go first to JarLauncher class that calls back Mymiaosha4Application class

Guess you like

Origin www.cnblogs.com/yanguobin/p/11944368.html