问题描述:
SpringBoot启动报错Failed to determine a suitable driver class
如下图:

原因
应用没有使用到DataSource,但是在pom.xml里引入了mybatis-spring-boot-starter
解决办法
找到pom.xml文件

把mybatis-spring-boot-starter的依赖去掉,这样就不会触发spring boot相关的代码
方法
找到mybatis-spring-boot-starter这一行,快捷键Ctrl+/就好了

然后就解决问题了
