关于MyBatis的Failed to determine a suitable driver class 或 invalid bound statement (not found)错误解决方法
在使用SpringBoot+MyBatis时出现 Failed to determine a suitable driver class或invalid bound statement (not found)等错误解决方案。
1.首先检查datasource相关配置是否完全正确。如果使用mysql8.0以上版本driver-class-name请配置为com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-name=com.mysql.jd...
原创
2021-03-25 23:55:45 ·
977 阅读 ·
0 评论