报错信息:

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相关推荐

  1. springboot项目启动报错 url‘ attribute is not specified and no embedded datasource could be configured

    使用依赖 <!-- mybatis-plus --><dependency><groupId>com.baomidou</groupId><art ...

  2. SpringBoot项目启动报错:Field userMapper in com.demo.controller.MemberController required a bean of type ‘c

    问题描述: SpringBoot项目启动报错,报错内容:'com.xxx.mapper.XxxxMapper' that could not be found ******************** ...

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

  4. idea软件 springboot项目启动报错:命令行太长解决

    idea软件 springboot项目启动报错:命令行太长解决 1.找到项目下得.idea文件夹,打开文件workspace.xml 2.搜索标签 <component name="P ...

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

  6. springboot项目启动报错-案例情景介绍

    文章目录 摘要 情况1:Nacos报错 情况2:IllegalStateException: Incompatible fallbackFactory instance 情况3:idea编译java文 ...

  7. 【图文详解】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 ...

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

  9. SpringBoot项目启动报错,java.lang.IllegalStateException: Ambiguous mapping.访问路径模棱两可,无法映射的问题!!!

    问题描述: SpringBoot项目刚启动就报错 下面是报错信息: 我这里提取了一下关键信息 Ambiguous mapping.(模棱两可的mapping) Cannot map 'test' me ...

最新文章

  1. ASP.NET dropdownlist绑定数据却显示System.Data.DataRowView
  2. 自动从mysql下载文件到powerbi_关于在Power Query和Power BI中从网页下载文件的小提示...
  3. Python程序退出方式小结(亲测)
  4. [树链剖分][SDOI 2011]染色,Housewife Wind
  5. raiserror 在 java_SQL 抛出异常错误信息- RAISERROR (存储过程)
  6. Oracle11g数据库安装
  7. Android SharedPreferences数据库
  8. 佳能g2810打印机扫描怎么用_佳能g2810怎么自动清洗
  9. 《Linux运维实战:免费md5解密工具》
  10. 接口性能测试案例分析
  11. 网易邮箱大师添加附件显示服务器连接失败,网易邮箱大师如何添加Word附件 添加附件方法步骤详细介绍...
  12. 选择正规的资质好的期货公司开户
  13. 【STM32单片机】打砖块游戏设计
  14. 百度地图精准定位,自定义marker,自定义信息弹出窗口。
  15. 团队项目介绍--基于区块链的教育信息管理系统
  16. win10添加网络打印机_大神教你设置 win10系统安装打印机及驱动的详细方案 -win10使用教程...
  17. 使用Jetcache过程的bug之Buffer underflow
  18. 【PE结构】由浅入深PE基础学习-菜鸟手动查询导出表、相对虚拟地址(RVA)与文件偏移地址转换(FOA)...
  19. 3D Local Features for Direct Pairwise Registration论文阅读
  20. 消除“Unfortunately, System UI has stopped”的方法

热门文章

  1. 极兔崛起,顺丰受伤,低端快递市场不好玩
  2. 负反馈元器件参数对功放性能的影响
  3. 翌加:抖音小店可以绑定几个抖音号
  4. 【LeetCode学习计划】《算法-入门-C++》第13天 位运算
  5. c udp文件发送到服务器端,基于UDP的客户端和服务器端的代码设计
  6. 基于RFM模型的用户价值分析——PythonTableau
  7. 宝石与石头(简单难度)
  8. ConstraintLayout2.x使用详解
  9. uint8数据类型图片和double数据类型图片的转化和显示
  10. java求最大公约数