原文:Error creating bean with name 'dataSource'...Failed to determine a suitable driver class

场景: 新建的spring boot maven mybatis工程,运行时报以下异常 maven配置如下: yml文件配置如下: 分析原因,已经指定了驱动类,但还是没有找到,有可能是没有加截到配置文件,可以尝试在pom.xml文件的build标签中加入如下内容: 添加后问题恢复 ...

2019-08-10 16:16 0 1587 推荐指数:

查看详情

SpringBoot启动报错Failed to determine a suitable driver class

SpringBoot启动报错如下 把这个依赖注释掉就好了 原因 应用没有使用到DataSource,但是在pom.xml里引入了mybatis-spring-boot-starter 问题解决办法 有两种: 把mybatis-spring-boot-starter的依赖去掉 ...

Tue May 07 05:35:00 CST 2019 0 1634
SpringBoot启动报Failed to determine a suitable driver class

应用没有使用到DataSource,但是在pom.xml里引入了mybatis-spring-boot-starter 问题解决办法 有两种: 把mybatis-spring-boot-starter的依赖去掉,这样就不会触发spring boot相关的代码 ...

Thu Apr 16 17:08:00 CST 2020 0 2344
 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM