解决springboot启动时‘url‘ attribute is not specified and no embedded datasource could be configured.

一、遇到的问题截图

二、原因

我是在更新了idea的版本后遇到的这个问题,在之前的旧版本中启动项目时是正常的。而在我的idea新版本中resource只是普通的文件夹,正常它应该是资源文件夹。

三、解决方法

将resource设置为资源文件夹,右键Mark Directory as->Resources Root,重新启动即可。

猜你喜欢

转载自blog.csdn.net/weixin_65919849/article/details/129346862
今日推荐