Failed to configure a DataSource: ‘url’ attribute is not specified and no embedd

错误:

在网上由好几种解决方法,例如:
配置属性:
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
但是治标不治本

解决方法:

项目报错后,首先我们要先到项目的tarrget目录下,查看配置文件是否正常编译生成

如果没有正常生成,直接到pom文件下查看打包方式
此处问题就是pom文件中打包方式设为了pom

直接删除该行,默认打包为jar
再删除target目录下文件
重新编译
发现没有出错

报错: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. 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 查 ...

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

    Failed to configure a DataSource: 'url' attribute is not specified and no em 无法配置DataSource:未指定'url' ...

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

  9. 初次使用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. 十二、深入JavaScript中的Date
  2. 两种求集合全部子集的方法
  3. MFC中OnCtlColor的用法(改变控件颜色)
  4. 使用MRS CDL实现实时数据同步的极致性能
  5. 73 ----空间曲线的投影、投影柱面与投影曲线的方程、二元函数的等值线、等高线的性质
  6. indesign入门教程,如何创建文本列?
  7. html用于信息展示的表格源码,Html表格
  8. 安装系统显示sql服务器未安装,win7系统安装SQLServer2005提示“SQL Server服务无法启动”的解决方法...
  9. LCD驱动芯片——BL55072A驱动程序
  10. U-Net-Convolutional Networks for Biomedical Image Segmentation论文翻译——中文版
  11. [975]python requests实现HTTPS客户端的证书导入
  12. 作品集也可以很有创意:一款用键盘操控汽车的可交互游戏式个人主页
  13. wxWidgets(1) :mac下搭建wxWidgets 3.0 环境
  14. 云班课计算机第二阶段测试卷,云班课测试自动答案
  15. jQuery的deferred对象深析
  16. MySQL 8.0.29 解压版安装教程(亲测有效)
  17. 华为最新款手机2021款鸿蒙,华为最新款手机2021款_华为2021即将上市新款手机
  18. 来自NULL的程序人生大作业
  19. 【ps-course 网页设计】抠图
  20. AnalyticDB

热门文章

  1. 转载-为程序开发人员量身定制的12个目标
  2. 爱奇艺客户端自动更新安装至C盘解决方法
  3. python文件处理基础_[Python入门及进阶笔记]Python-基础-文件处理小结
  4. VisualCamp将为ETRI提供可减轻眩晕感的注视追踪技术
  5. x86、x86_64/x64、amd64和arm64/aarch64 linux-aarch64 linux-x86-64系统查看,硬件和底层软件,应用软件的理解
  6. 死亡空间2显卡测试软件,恐怖窒息体验 中低端显卡闯荡《死亡空间2》(4)
  7. 【java】获取昨天、今天、明天、几天前、几天后的时间
  8. 易语言可视化html编辑器,可视化网页设计编辑器源码附彗星真彩控件模块
  9. reposync命令详解--reposync同步aliyunyum库到本地
  10. Android控件动态显示和隐藏