搭建springboot应用,报错:Failed to configure a DataSource: ‘url’ attribute is not specified and no embedd


查询网络上多数解决方案都认为是以下四类原因

  • DataSourceAutoConfiguration会自动加载.
  • 没有配置spring - datasource - url 属性
  • spring - datasource - url 配置的地址格式有问题.
  • spring - datasource - url 配置的地址格式有问题.

以上四类解决方法可见这里

由于怀疑是POM文件中依赖缺失,检查了一遍,并没有
然后就照着四个方法试了一遍,一无所获。仔细想想,DataSource就配置了四个选项,都查了个遍,应该不会有问题。
后来查到了一篇文章,作者认为:

报错原因:

使用多数据源,第一次运行前要install

抱着怀疑的心态试了试
嘿,真tnd可以!
百度一下:

  • package命令完成了项目编译、单元测试、打包功能,但没有把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库和远程maven私服仓库
  • install命令完成了项目编译、单元测试、打包功能,同时把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库,但没有布署到远程maven私服仓库
  • deploy命令完成了项目编译、单元测试、打包功能,同时把打好的可执行jar包(war包或其它形式的包)布署到本地maven仓库和远程maven私服仓库

原文:https://blog.csdn.net/zhaojianting/article/details/80324533

所以,我的情况可能是需要编译,打包才可以?那package是不是也行? 希望有大佬路过说一下,万分感谢╰( ̄ω ̄o)

SpringBoot 错误 : 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 embedd" 意思为配置数据 ...

  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 em 无法配置DataSource:未指定'url' ...

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

  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 If you want an ...

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

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

  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 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 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 embedded datasource could ...

最新文章

  1. (导航页)Amazon Lightsail 部署LAMP应用程序(HA)
  2. Serverless 工程实践 | Serverless 应用优化与调试秘诀
  3. vue中页面跳转传值_vue跳转方式(打开新页面)及传参操作示例
  4. 笔记本 win7 装vs2010 报错 注册表 拒绝访问等
  5. Mr.J-- HTTP学习笔记(三)-- HTTP报文
  6. php date 加30分钟,PHP date函数常用时间处理方法
  7. Thrift搭建分布式微服务(四)
  8. macos安装盘第三方工具制作_MacOS平台的磁盘镜像制作工具DMG Canvas for mac怎么样?...
  9. 文献管理:文献管理软件Mendeley的基本使用和导出参考文献方法
  10. linux 程序发包,软件测试常用linux发包命令
  11. PDMS中如何设置颜色规则
  12. ABB变频器配件,西门子变频器配件,施耐德变频器配件
  13. 搭建局域网Web服务器
  14. 计算机科学与技术专业叙述,计算机科学与技术专业描述怎么写
  15. Unity3D 异步加载
  16. 【论文笔记】RS--基于卫星遥感的中国县级尺度小麦估产研究
  17. 工厂方法模式、简单工厂模式、抽象工程模式
  18. 调频电视发射机工作原理
  19. 获取滑动条位置,动态调整对话框显示位置;为动态添加的button添加click事件
  20. rabbitmq 使用与理解全流程

热门文章

  1. HTML5 【第一天】
  2. 解决maven打包时漏掉src/main/java资源里的xml的问题
  3. 【深度学习项目五】:利用LSTM网络进行情感分析(NLP)
  4. POST方式导出Excel
  5. PHP 视频操作(ffmpge - 添加水印/视频压缩/视频截图等)
  6. 09BIOS设置,PXE批量装机
  7. 建行的回单T+1日才能生成。也就是说T+2日才保准。工行实时生成
  8. 由于管理员设置的策略,该磁盘处于脱机状态
  9. 不允许从数据类型 varchar 到 varbinary 的隐式转换。请使用 CONVERT 函数来运行此查询
  10. ubuntu移植jsoncpp到Android平台