项目启动报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
一 、项目启动报错,错误信息截图如下:
经过对错误信息的分析判断是数据源配置出现错误,提示说没有配置数据源的URL路径,但是实际上我的项目中已经配置了数据源,如下:
经过多方询问最后发现在yml文件中,配置数据源需要讲上下的数据源的格式对齐,如果有缩进没有对齐的就会被认为是上一个数据源的附属,如下:
二、解决办法
将缩进的数据源配置项移动到与上一个数据源同样的位置进行对齐,即可解决项目启动报错,如下:
以上就解决了我自己的项目启动报错信息
在此也第一次了解到yml文件中关于对数据源的配置的知识,配置数据源必须对齐,格式一定要正确,否则就会报错
以上是个人工作学习中的个人笔记,如果不到之处,请多多指教
项目启动报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd相关推荐
- springboot报错Failed to configure a DataSource url attribute is not specified and no embedd
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could ...
- 初步搭建微服务应用,报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
报错: Failed to configure a DataSource: 'url' attribute is not specified and no embedd If you want an ...
- 报错:Failed to configure a DataSource: url attribute is not specified and no embedd
Failed to configure a DataSource: 'url' attribute is not specified and no embedd 错误: 在网上由好几种解决方法,例如: ...
- 阿里连接池报错:Failed to configure a DataSource ‘url‘ attribute is not specified and no embedd
阿里连接池报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedd 明明已经配置数据库连接 ...
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd.
springboot启动报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedd. Rea ...
- SpringBoot 错误 : Failed to configure a DataSource: 'url' attribute is not specified and no embedd
搭建springboot应用,报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedd 查 ...
- Failed to configure a DataSource: ‘url’ attribute is not specified and no embedd
初步搭建springboot应用,报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedd ...
- Failed to configure a DataSource: 'url' attribute is not specified and no embedd
Failed to configure a DataSource: 'url' attribute is not specified and no em 无法配置DataSource:未指定'url' ...
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd(究极踩坑完美解决)
前言:Failed to configure a DataSource: 'url' attribute is not specified and no embedd这个错误想必大家已经非常非常熟悉了 ...
- 初次使用SpringBoot发现Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
"Failed to configure a DataSource: 'url' attribute is not specified and no embedd" 意思为配置数据 ...
最新文章
- HTTPS的七个神话(译文)
- lnmp、lamp、lnmpa一键安装包
- My github blog
- 三种通用应用层协议protobuf、thrift、avro对比
- nodeJS — 学习的笔记
- php的list函数
- C++返回char*第n个位置开始的子字符串
- 联合国再请马云出任要职
- swagger的使用(com.spring4all)
- 为什么 Netflix 这么强?网飞 CEO 哈斯廷斯跟陆奇摊牌了
- 数据集如何影响作物病害识别的有效性
- ENVI入门系列教程---一、数据预处理---8.图像裁剪
- java获取系统字体大小_Java自动调整到Windows 7的字体大小调整
- Unity官网注册账号绑定手机国籍更改失败
- VSCode Workspace使用,以及file.exclude、search.exclude的使用模板
- 小程序scroll-view文字不能自动换行
- [HTML5-SVG]SVG是什么?SVG有什么用途?
- Html Table 表格 画斜线
- 石墨烯和碳纤维的联系与区别
- 更加简洁易用——wangEditor富文本编辑器新版本发布