IDEA maven工程创建多模块报错:找不到或加载主类错误
2020-02-05 02:45
225 查看
报错:找不到或加载主类错误。
在初学 spring cloud 时使用 maven 搭建项目时,碰见了创建多个模块时第一个模块可以运行 main 方法的 SpringApplication.run(***.class,args),而第二个始终无法运行。
在经过很多检查之后,在编写的代码以及配置中没发现问题,后面在网上找了大半天,发现是 IDEA 本身工程文件问题,于是将项目的 .idea 文件删除,重启idea让其重新创建 .idea 文件,问题解决。
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Intellij IDEA 的maven多模块中其中一个模块下的main方法启动报 错误:找不到或无法加载主类xxx.xxx.xxx
- MyEclipse 新建maven项目:错误: 找不到或无法加载主类
- idea 创建 多模块 maven 工程
- maven项目中 “ 错误: 找不到或无法加载主类" 的解决办法
- IDEA搭建maven多模块工程时碰到的错误Some problems were encounter
- eclipse maven 错误 找不到或无法加载主类
- IDEA 错误:找不到或无法加载主类
- idea 错误: 找不到或无法加载主类
- Eclipse Maven 错误: 找不到或无法加载主类 ?
- maven项目中 “ 错误: 找不到或无法加载主类" 的解决办法
- maven新建webapp后,运行@Test或print报错 错误: 找不到或无法加载主类
- IDEA 出现错误:找不到或无法加载主类
- Spring Boot Eclipse maven项目 错误: 找不到或无法加载主类...解决办法
- 安装maven 错误: 找不到或无法加载主类 org.codehaus.plexus.classworlds.launcher.Launcher
- kafka创建topics 错误: 找不到或无法加载主类 Files\Java\jdk1.7.0_80\lib;C:\Program
- idea中maven 多模块项目 运行提示无法加载主类
- IDEA 中错误:找不到或无法加载主类
- pom.xml无法引入本地的jar和安装到本地安装maven 错误: 找不到或无法加载主类 org.codehaus.plexus.classworlds.launcher.Launcher
- maven项目在测试springapplication.run时 出现“错误: 找不到或无法加载主类”错误
- IDEA——错误: 找不到或无法加载主类