springboot无法加载主类问题

1、启动报错误: 找不到或无法加载主类 org.spring.springboot.Application

原因:可能在工程下面有多个module,然后module里面的iml配置文件不止一个
解决方法:删除多余的iml文件,只剩余一个即可

2、报错:cannot access org.springframework.context.ConfigurableApplicationContext

也是上面这个原因,删除多余的iml文件

猜你喜欢

转载自blog.csdn.net/qq_43165002/article/details/90642384