springboot项目下载到本地,运行idea报错找不到或无法加载主类。原因是工程还没有编译,找不到主类的class文件,需要先编译工程。解决方法执行mvn编译命令:mvncompile或者点击idea右侧的maven菜单栏,点击compile:referencecannotbefoundorthemainclasscom.xxx.yyy.Applicationcannotbeloaded如果觉得文章对您有帮助,请点赞!

springboot项目下载到本地,运行idea报错找不到或无法加载主类。原因是工程还没有编译,找不到主类的class文件,需要先编译工程。解决方法执行mvn编译命令:mvncompile或者点击idea右侧的maven菜单栏,点击compile:referencecannotbefoundorthemainclasscom.xxx.yyy.Applicationcannotbeloaded如果觉得文章对您有帮助,请点赞!