其他分享
首页 > 其他分享> > Failed to configure a DataSource: ‘url‘ attribute is not specified

Failed to configure a DataSource: ‘url‘ attribute is not specified

作者:互联网

Springboot项目报错,原本我的项目能跑的,过了一段时间再去跑,报错了,错误提升如下:
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Failed to determine a suitable driver class

我把问题拷贝然后在网上找了很久,试了各种方法都不行。
最后,我实在没办法了。就重新初始化了一个项目,然后把文件拷贝过去,然后就跑起来了。
这个故事告诉我,原本能跑的项目突然不能跑了,可以试试clean,重启,实在不行重新初始化一个项目再把源文件拷贝过去。

哎,折腾了这么久,还是不知道啥原因导致的项目报错。

标签:configure,项目,url,attribute,Failed,报错,determine,拷贝
来源: https://blog.csdn.net/weixin_43975276/article/details/121333249