Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could
发布日期:2021-06-28 20:54:16 浏览次数:2 分类:技术文章

本文共 274 字,大约阅读时间需要 1 分钟。

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

翻译就是:无法配置DataSource:未指定'url'属性,也无法配置嵌入数据源。

很明显,就是你在应用中没有配置datasource的一些相关属性,例如:地址值啊,数据库驱动啊,用户名啊,密码啊,

出错原因,引入了Spring Boot data jpa 依赖而没有在配置文件中加入数据库相关的配置信息

参考链接:

转载地址:https://blog.csdn.net/yangshengwei230612/article/details/103875344 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:import 之后找不到对应方法
下一篇:HTTP协议六种请求方法:GET,HEAD,PUT,DELETE,POST介绍

发表评论

最新留言

感谢大佬
[***.8.128.20]2024年04月05日 22时28分12秒