配置springboot的项目启动不了

在配置springboot的项目 ,启动不了, 数据源连接不到。

在这个过程中我检查了yml文件,检查了相关依赖适配的版本,检查了数据连接池,确实不清楚啥问题

达到的效果能够启动起,用mp的方式操作数据库,万分感谢

这是异常
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Invocation of init method failed; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class

img

这是我的配置

img

img

数据库连接版本不对,你的是多少版本?

你使用的jdbc驱动和你数据库的版本不匹配,尝试一下使用com.mysql.jdbc.Driver驱动,不行的话只能更换数据库版本了

报错是显示数据库Driver有问题,找不到合适的,你的MySQL是什么版本的?用的数据库连接是什么版本?