Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
at com.yonyou.dmscloud.part.PartApplication.main(PartApplication.java:16)
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
因为pom中activejdbc 插件报错,开发人员添加了一个<pluginmanagement>标签导致打包部分jar没有打进去。
总结:导致这个问题的原因很多,后续再总结