Failed to configure a DataSource: 'url' attribute is not specified and no embedde异常

springboot项目启动时,或者clean项目后install打包项目的时候出现以下原因

Failed to configure a DataSource: 'url' attribute is not specified and no embedde异常

由于项目中没有配置:

Failed to configure a DataSource: 'url' attribute is not specified and no embedde异常

导致Failed to configure a DataSource: 'url' attribute is not specified and no embedde异常没有及时编译这些配置文件,所以导致文件找不到,加上即可解决bug

若还不行,先删除项目中的target目录,在重新启动项目,重新编译一遍即可