错误信息:

控制台打印红色错误: 找不到或无法加载主类 com.xxx.Application


解决方法:

Eclipse 中点击 Window --> Properties --> Java ---> Compiler--> Building --> Enable project specific settings --> Build path problems --> 勾选 Abort build when build path errors occur ---> 把  Incomplete build path 和 Circular dependencies  这两选项修改为 Warning,然后保存


SpringBoot启动报错:找不到或无法加载主类_解决方法


找到主方法再次运行即可:


SpringBoot启动报错:找不到或无法加载主类_spring boot_02


   更多java、大数据学习面试资料,请扫码关注我的公众号:

SpringBoot启动报错:找不到或无法加载主类_解决方法_03