1、启动报错误: 找不到或无法加载主类 org.spring.springboot.Application 原因:可能在工程下面有多个module,然后module里面的iml配置文件不止一个 解决方法:删除多余的iml文件,只剩余一个即可 2、报错:cannot access org.springframework.context.ConfigurableApplicationContext 也是上面这个原因,删除多余的iml文件