这是异常
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
这是我的配置
数据库连接版本不对,你的是多少版本?
你使用的jdbc驱动和你数据库的版本不匹配,尝试一下使用com.mysql.jdbc.Driver驱动,不行的话只能更换数据库版本了
报错是显示数据库Driver有问题,找不到合适的,你的MySQL是什么版本的?用的数据库连接是什么版本?