项目场景:

微服务项目中,多个项目互相调用时,出现

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
//无法配置数据库,没有指定url属性,并且无法配置embedded datasource
Reason: Failed to determine a suitable driver class
//原因:无法明确指定正确的驱动类(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).


问题描述

程序启动失败,缺乏合适的启动项


解决方案:

pom文件中依赖冲突,当前类有自己的启动类,application.yml文件。但是pom中引入的类也有自己的启动类和配置文件。

所以要注意依赖里只可引入工具类或实体类,避免冲突。

Failed to determine a suitable driver class相关推荐

  1. Springboot 抛出Failed to determine a suitable driver class异常原因

    Springboot 抛出Failed to determine a suitable driver class异常原因 参考文章: (1)Springboot 抛出Failed to determi ...

  2. 若依微服务版在Windows上通过jar包运行业务模块时提示:Failed to determine s suitable driver class

    场景 若依微服务版后台服务通过jar包部署到Windows服务器: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/10962333 ...

  3. SpringBoot 启动失败 Failed to determine a suitable driver class 问题解决方案

    SpringBoot 启动失败 Failed to determine a suitable driver class 问题解决方案 参考文章: (1)SpringBoot 启动失败 Failed t ...

  4. 报错解决:Reason: Failed to determine a suitable driver class

    背景: 导入别人的项目,却报错: Error starting ApplicationContext. To display the conditions report re-run your app ...

  5. 【Java异常】Failed to determine a suitable driver class

    本文目录 一.问题描述 二.问题原因 三.解决方案 方式1:配置文件排除 方式2:项目启动类排除 技术栈:Spring boot (2.1.5 RELEASE) + Mybatis plus(3.3. ...

  6. Error creating bean with name 'dataSource'...Failed to determine a suitable driver class

    场景: 新建的spring-boot maven mybatis工程,运行时报以下异常 16:04:10.751 [main] ERROR org.springframework.test.conte ...

  7. 完美解决Failed to determine a suitable driver class的问题

    文章目录 1. 复现问题 2. 分析问题 3. 解决问题 4. 总结问题 1. 复现问题 今天在启动项目时,遇到如下问题: *************************** APPLICATIO ...

  8. springcloud解决运行出现Failed to determine a suitable driver class

    找了一下午的大坑,终于被解决了!!!! 首先项目之前一直都是好好地,然后突然有个模块启动报错,错误如下: Caused by: org.springframework.beans.factory.Be ...

  9. spring boot测试方法报Failed to determine a suitable driver class的解决办法

    时间:2022年2月2日 项目:spring boot整合mybatis-plus 错误类型:Failed to determine a suitable driver class 错误原因:pom. ...

最新文章

  1. acl中in和out的区别
  2. 第一天学习Android的一些笔记
  3. 【论文解读】ICLR2020 | 深度自适应Transformer
  4. class反编译_IDEA反编译功能小试牛刀
  5. cpu频率_新版win10修复CPU频率显示不正确的bug
  6. 终于有人把YOLO讲明白了
  7. 教你如何在@ViewChild查询之前获取ViewContainerRef
  8. 马斯克、吴恩达等27人出镜:AI可能成为不朽独裁者,人类就像蚂蚁束手就擒
  9. [置顶] 63行代码完美实现html5 贪吃蛇游戏
  10. 首次在matable中安装libsvm碰到的问题和解决方法---- mxGetIr 已过时 错误
  11. linux系统用虚拟光驱装win7,虚拟光驱安装win7系统步骤
  12. 技术人员如何创业(4)---打造超强执行力团队
  13. Linux(2019年)-10.11
  14. 寒冬已过,2023抓住IT复苏新机会
  15. 一个好用的软件定时器模块MultiTimer
  16. 第十三届蓝桥杯(Web 应用开发)线上模拟赛第一题
  17. 如何用计算机打出下划线,哪位可以告诉我在电脑上怎么打下划线
  18. 黑马程序员————高新技术————反射
  19. 80后小学生必杀经典句子
  20. 程序员保持健康的生活指南

热门文章

  1. 数据挖掘机器学习[六]---项目实战金融风控之贷款违约预测
  2. 天池-金融风控训练营-task5-模型融合
  3. 从编译器源码中提取ARMv8的指令编码
  4. 中图杯获奖作品计算机组,“中图杯”第十四届环境地图大赛召开 地图慧成指定制图软件...
  5. MATLAB图中图局部放大几种方法
  6. Java单元测试实践-06.Mock后Stub静态方法
  7. 力扣(88.53)补8.31
  8. git由ssh改为http后,HTTP Basic: Access denied无法同步问题解决
  9. C++结构体中包含容器,push_back异常
  10. 《读万卷书行万里路》国画大家罗建泉写生艺术