关于启动SpringBoot简单项目报错Error starting ApplicationContext. To display the conditions report re-run ..的问题

当我们创建一个SpringBoot项目,它pom.xml中的这个地方是这样的:如图所示关于启动SpringBoot简单项目报错Error starting ApplicationContext. To display the conditions report re-run ..的问题_第1张图片

 

 如果红色框里面没有注释点,一运行项目就会报错如下图片所示:   

关于启动SpringBoot简单项目报错Error starting ApplicationContext. To display the conditions report re-run ..的问题_第2张图片

 还有如下图的警告:

关于启动SpringBoot简单项目报错Error starting ApplicationContext. To display the conditions report re-run ..的问题_第3张图片

 经过一番百度也没有发现类似报错的情况,也不知道这么去解决。

只有将pom.xml中的这个注释掉,如下图所示:

关于启动SpringBoot简单项目报错Error starting ApplicationContext. To display the conditions report re-run ..的问题_第4张图片

再点击import changes, 等编译完了,再运行就正常了。

你可能感兴趣的:(关于启动SpringBoot简单项目报错Error starting ApplicationContext. To display the conditions report re-run ..的问题)