一 、项目启动报错,错误信息截图如下:

经过对错误信息的分析判断是数据源配置出现错误,提示说没有配置数据源的URL路径,但是实际上我的项目中已经配置了数据源,如下:

经过多方询问最后发现在yml文件中,配置数据源需要讲上下的数据源的格式对齐,如果有缩进没有对齐的就会被认为是上一个数据源的附属,如下:

二、解决办法

将缩进的数据源配置项移动到与上一个数据源同样的位置进行对齐,即可解决项目启动报错,如下:

以上就解决了我自己的项目启动报错信息
在此也第一次了解到yml文件中关于对数据源的配置的知识,配置数据源必须对齐,格式一定要正确,否则就会报错
以上是个人工作学习中的个人笔记,如果不到之处,请多多指教

项目启动报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd相关推荐

  1. 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 ...

  2. 初步搭建微服务应用,报错: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 ...

  3. 报错: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 错误: 在网上由好几种解决方法,例如: ...

  4. 阿里连接池报错: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 明明已经配置数据库连接 ...

  5. 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 ...

  6. 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 查 ...

  7. 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 ...

  8. 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' ...

  9. 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这个错误想必大家已经非常非常熟悉了 ...

  10. 初次使用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" 意思为配置数据 ...

最新文章

  1. HTTPS的七个神话(译文)
  2. lnmp、lamp、lnmpa一键安装包
  3. My github blog
  4. 三种通用应用层协议protobuf、thrift、avro对比
  5. nodeJS — 学习的笔记
  6. php的list函数
  7. C++返回char*第n个位置开始的子字符串
  8. 联合国再请马云出任要职
  9. swagger的使用(com.spring4all)
  10. 为什么 Netflix 这么强?网飞 CEO 哈斯廷斯跟陆奇摊牌了
  11. 数据集如何影响作物病害识别的有效性
  12. ENVI入门系列教程---一、数据预处理---8.图像裁剪
  13. java获取系统字体大小_Java自动调整到Windows 7的字体大小调整
  14. Unity官网注册账号绑定手机国籍更改失败
  15. VSCode Workspace使用,以及file.exclude、search.exclude的使用模板
  16. 小程序scroll-view文字不能自动换行
  17. [HTML5-SVG]SVG是什么?SVG有什么用途?
  18. Html Table 表格 画斜线
  19. 石墨烯和碳纤维的联系与区别
  20. 更加简洁易用——wangEditor富文本编辑器新版本发布

热门文章

  1. 释放数据价值推动企业转型 英特尔(2017)中国行业峰会圆满落幕
  2. 从QQ秀到VR穿搭,为什么服装搭配对虚拟化身如此重要
  3. 00后的可爱语录和强大的80后妈妈--4
  4. 设计模式(十二)—— 享元模式
  5. IE浏览器下的Input File详解
  6. 【宽搜】mzoj 1345 英雄 hero
  7. 手机上网功能开通 || 手机上网功能关闭
  8. BZOJ 4657: tower【路径最小割约束】
  9. Bell State 贝尔态基本原理
  10. 完整的IOCP模型 Echo服务器及代码分析