在我更换配置文件的时候,我的系统开始报错了,刚开始的样子是一个yml和一个dev.yml这两个文件都有数据库的配置,一个使用的mysql8.0,一个使用的是mysql5.0.按照网上的配置进行yml文件分离,神奇的是他使用了两个文件里面的东西,它使用了yml文件的dataSource和dev里面的数据库驱动,有点东西,我将yml的dataSource注掉后开始报错
报错信息
2021-03-24 21:31:20.331 ERROR 8572 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine suitable jdbc url
Action:
Consider the following:
If you want an embedded