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

创建一个SpringBoot项目,在pom.xml中的引入 org.mybatis.spring.boot 依赖

关于启动SpringBoot简单项目报错Error starting ApplicationContext. To display the conditions report re-run ..的问题如果红色框里面没有注释掉并重新Import  Changes,一运行项目就会报错如下图片所示:

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

还有如下图的警告:

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

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

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

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