搭建springboot应用,运行报错:Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
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相关推荐
- 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 明明已经配置数据库连接 ...
- 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 查 ...
- 初次使用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 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. Rea ...
- 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这个错误想必大家已经非常非常熟悉了 ...
最新文章
- 功能规格说明书Version2
- pytest测试框架_聊聊 Python 的单元测试框架(三):最火的 pytest
- 区块链BaaS云服务(21)腾讯CCGP”节点安全“
- Linux基础(一)----- Linux常用命令
- 监听Hierachy、Project等视图结构变化的事件
- uvc能支持多大分辨率_华为手环B5测评:该有的功能一个不缺,甚至还能变身蓝牙耳机...
- 除了马斯克,DARPA也要花钱研究脑机接口了
- java对象gc恢复_JVM垃圾回收与对象状态
- 【RS】OSPF邻居关系(1)--OSPF邻居表为空
- 二叉树遍历——深度优先遍历、广度优先遍历
- Centos禁止屏幕虚拟键盘弹出
- Javc笔记(三) package和import
- JavaScript的回调函数及Ajax中的回调函数
- html设置径向渐变色,【前端Talkking】CSS系列-css3之径向渐变初探
- Springer的latex压缩包上传转不了pdf
- 英文自我介绍(考研/校内面试/复试)
- 如何利用百度图片搜索进行引流?原理是怎样的?
- Conflux人物志 | Hunter:破壁,那些不愿被定义的年轻人
- docker基于ubuntu镜像发布蚂蚁笔记leanote
- DOTA无法加载服务器指定的地图,Dota2自定义地图工具怎么安装_Dota2自定义地图工具常见问题处理方法...
热门文章
- vegfr2药物|适应症|市场销售数据-上市药品前景分析
- 从Oracle到MySQL,余额宝云实践分享 20131111(转)
- Google Cloud Natural Language情感分析教程
- 各位想不想知道,360,局域网能不能防护好?
- 使用uGUI系统玩转标准俄罗斯方块
- 在 FROM 下打开水晶报表文件(代碼碎片)
- 微信打开手机内置浏览器跳转手机默认浏览器打开html网页
- 管理系统无法运行Java_无法使用32位版本的DISM为正在运行的64位操作系统服务
- 软件定义网络:SDN与OpenFlow解析pdf
- 资产配置那些事-信用卡