spring boot 会默认加载org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration这个类,
而DataSourceAutoConfiguration类使用了@Configuration注解向spring注入了dataSource bean,
又因为项目(oss模块)中并没有关于dataSource相关的配置信息,所以当spring创建dataSource bean时因缺少相关的信息就会报错。 解决办法:在@SpringBootApplication注解上加上exclude,解除自动加载DataSourceAutoConfiguration

我的解决方法:@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})

解决报错原文路径:https://blog.csdn.net/qq_40223688/article/details/88191732

搭建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 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. 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 查 ...

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

  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.

    springboot启动报错:Failed to configure a DataSource: 'url' attribute is not specified and no embedd. Rea ...

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

  10. 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. 功能规格说明书Version2
  2. pytest测试框架_聊聊 Python 的单元测试框架(三):最火的 pytest
  3. 区块链BaaS云服务(21)腾讯CCGP”节点安全“
  4. Linux基础(一)----- Linux常用命令
  5. 监听Hierachy、Project等视图结构变化的事件
  6. uvc能支持多大分辨率_华为手环B5测评:该有的功能一个不缺,甚至还能变身蓝牙耳机...
  7. 除了马斯克,DARPA也要花钱研究脑机接口了
  8. java对象gc恢复_JVM垃圾回收与对象状态
  9. 【RS】OSPF邻居关系(1)--OSPF邻居表为空
  10. 二叉树遍历——深度优先遍历、广度优先遍历
  11. Centos禁止屏幕虚拟键盘弹出
  12. Javc笔记(三) package和import
  13. JavaScript的回调函数及Ajax中的回调函数
  14. html设置径向渐变色,【前端Talkking】CSS系列-css3之径向渐变初探
  15. Springer的latex压缩包上传转不了pdf
  16. 英文自我介绍(考研/校内面试/复试)
  17. 如何利用百度图片搜索进行引流?原理是怎样的?
  18. Conflux人物志 | Hunter:破壁,那些不愿被定义的年轻人
  19. docker基于ubuntu镜像发布蚂蚁笔记leanote
  20. DOTA无法加载服务器指定的地图,Dota2自定义地图工具怎么安装_Dota2自定义地图工具常见问题处理方法...

热门文章

  1. vegfr2药物|适应症|市场销售数据-上市药品前景分析
  2. 从Oracle到MySQL,余额宝云实践分享 20131111(转)
  3. Google Cloud Natural Language情感分析教程
  4. 各位想不想知道,360,局域网能不能防护好?
  5. 使用uGUI系统玩转标准俄罗斯方块
  6. 在 FROM 下打开水晶报表文件(代碼碎片)
  7. 微信打开手机内置浏览器跳转手机默认浏览器打开html网页
  8. 管理系统无法运行Java_无法使用32位版本的DISM为正在运行的64位操作系统服务
  9. 软件定义网络:SDN与OpenFlow解析pdf
  10. 资产配置那些事-信用卡