【SpringBoot】Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datas

Failed to configure a DataSource: 
'url' attribute is not specified and no embedded datasource could be configured.

检查application.yml文件:

发现:未将resources文件夹设为资源文件夹
在这里插入图片描述
进行标记即可正常启动运行。

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/d347091231/article/details/121394122