springboot 项目启动报错 url' attribute is not specified and no embedded datasource could be configured
报错信息:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[2m2018-08-06 10:04:25.845[0;39m [31mERROR[0;39m [35m11256[0;39m [2m---[0;39m [2m[ main][0;39m [36mo.s.b.d.LoggingFailureAnalysisReporter [0;39m [2m:[0;39m
APPLICATION FAILED TO START
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
原因:由于添加了数据库组件,所以autoconfig会去读取数据源配置,新建的项目还没有配置数据源,所以会导致异常出现。
解决办法:
在启动类添加如下内容
即:@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
springboot 项目启动报错 url' attribute is not specified and no embedded datasource could be configured相关推荐
- springboot项目启动报错 url‘ attribute is not specified and no embedded datasource could be configured
使用依赖 <!-- mybatis-plus --><dependency><groupId>com.baomidou</groupId><art ...
- SpringBoot项目启动报错:Field userMapper in com.demo.controller.MemberController required a bean of type ‘c
问题描述: SpringBoot项目启动报错,报错内容:'com.xxx.mapper.XxxxMapper' that could not be found ******************** ...
- SpringBoot项目启动 报错:Error executing Maven. end tag name </settings> must match start tag name
SpringBoot项目启动 报错:Error executing Maven. end tag name must match start tag name from line xxx 第一次创建s ...
- idea软件 springboot项目启动报错:命令行太长解决
idea软件 springboot项目启动报错:命令行太长解决 1.找到项目下得.idea文件夹,打开文件workspace.xml 2.搜索标签 <component name="P ...
- 2021新版本Nacos配置中心提示‘url‘ attribute is not specified and no embedded datasource could be configured
2021新版本Nacos配置中心提示'url' attribute is not specified and no embedded datasource could be configured 1. ...
- springboot项目启动报错-案例情景介绍
文章目录 摘要 情况1:Nacos报错 情况2:IllegalStateException: Incompatible fallbackFactory instance 情况3:idea编译java文 ...
- 【图文详解】SpringBoot项目启动报错:The bean ‘xxxServiceImpl‘ could not be injected as a ‘xxxServiceImpl‘ ...
问题描述: 项目启动报错:The bean 'xxxServiceImpl' could not be injected as a 'cn.xxxx.service.xxxServiceImpl' b ...
- SpringBoot项目启动报错[类文件具有错误的版本 61.0, 应为 55.0 请删除该文件或确保该文件位于正确的类路径子目录中。]
Web server failed to start. Port 80 was already in use. Web server failed to start. Port 80 was alre ...
- SpringBoot项目启动报错,java.lang.IllegalStateException: Ambiguous mapping.访问路径模棱两可,无法映射的问题!!!
问题描述: SpringBoot项目刚启动就报错 下面是报错信息: 我这里提取了一下关键信息 Ambiguous mapping.(模棱两可的mapping) Cannot map 'test' me ...
最新文章
- ASP.NET dropdownlist绑定数据却显示System.Data.DataRowView
- 自动从mysql下载文件到powerbi_关于在Power Query和Power BI中从网页下载文件的小提示...
- Python程序退出方式小结(亲测)
- [树链剖分][SDOI 2011]染色,Housewife Wind
- raiserror 在 java_SQL 抛出异常错误信息- RAISERROR (存储过程)
- Oracle11g数据库安装
- Android SharedPreferences数据库
- 佳能g2810打印机扫描怎么用_佳能g2810怎么自动清洗
- 《Linux运维实战:免费md5解密工具》
- 接口性能测试案例分析
- 网易邮箱大师添加附件显示服务器连接失败,网易邮箱大师如何添加Word附件 添加附件方法步骤详细介绍...
- 选择正规的资质好的期货公司开户
- 【STM32单片机】打砖块游戏设计
- 百度地图精准定位,自定义marker,自定义信息弹出窗口。
- 团队项目介绍--基于区块链的教育信息管理系统
- win10添加网络打印机_大神教你设置 win10系统安装打印机及驱动的详细方案 -win10使用教程...
- 使用Jetcache过程的bug之Buffer underflow
- 【PE结构】由浅入深PE基础学习-菜鸟手动查询导出表、相对虚拟地址(RVA)与文件偏移地址转换(FOA)...
- 3D Local Features for Direct Pairwise Registration论文阅读
- 消除“Unfortunately, System UI has stopped”的方法