mybatisplus测试Error creating bean with name的问题

mybatisplus测试Error creating bean with name的问题

问题描述:

img


Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc

看下配置文件,数据源的key可能配置错了。
spring.datasource

查看一下数据库的连接参数是否正确。