java.sql.SQLException: Connections could not be acquired from the underlying database!
下面还有一些报错没有贴
我新建了一共DataSourceConfig类当作配置类来提前注入数据源,通过application.yaml文件里面的数据注入数据源了里面需要的数据
这是我的测试类,通过@ContextConfiguration引入我写好的配置类,yaml文件里面和配置类里面的格式都没有错,但是一运行就报错了
解决方法:
去掉测试类上面的 @ContextConfiguration注解就好了