错误: 找不到或无法加载主类 com.xxx

环境描述

idea2019.3 springboot2.x maven

问题描述

把idea自动生成的.idea文件删除后,启动项目报错

错误: 找不到或无法加载主类 com.example.chapter17product.Chapter17ProductApplication

解决方法

使用Maven下Plugins的spring-boot:run先运行一遍

错误: 找不到或无法加载主类 com.xxx_第1张图片

也可以直接在Terminal中执行命令 maven spring-boot:run

参考博客

https://blog.csdn.net/yzj17025693/article/details/91902073

看了很多的解决方法,就这个有用!!!

你可能感兴趣的:(exceptions,Idea,SpringBoot)