当前位置: 首页 > article >正文

【异常】SpringBoot3.2.0 Description: Failed to configure a DataSource: ‘url‘ att

mybatisPlus 多数据源导致

异常

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 (the profiles dev are currently active).

解决

spring-boot 1.5.x 2.x.x

<dependency>
  <groupId>com.baomidou</groupId>
  <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  <version>${version}</version>
</dependency>


spring-boot3 使用以下依赖

<dependency>
  <groupId>com.baomidou</groupId>
  <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  <version>${version}</version>
</dependency>


 


http://www.kler.cn/news/162166.html

相关文章:

  • 商品详情页评论和评论列表评论的排序html代码
  • Python---面向对象其他特性
  • 前端小技巧: 写一个异步程序示例, 使用任务队列替代promise和async/await等语法糖
  • Node CLI 之 Commander.js (1)
  • 性能测试工具:Jmeter介绍
  • 什么是网站?
  • Zabbix自定义飞书webhook告警媒介1
  • 设计模式基础——工厂模式剖析(2/2)
  • 使用 python ffmpeg 批量检查 音频文件 是否损坏或不完整
  • 备忘录模式 rust和java的实现
  • 机器学习实战:预测波士顿房价
  • Linus:我休假的时候也会带着电脑,否则会感觉很无聊
  • [论文阅读]Sparse Fuse Dense
  • 快速排序的新用法
  • CleanMyMac软件2024最新Mac系统清理工具实用性测评
  • FFmpeg数据结构AVFrame
  • SpringBoot项目访问resources下的静态资源
  • 企业计算机服务器中了360勒索病毒如何解密,勒索病毒解密数据恢复
  • 十五届蓝桥杯分享会(一)
  • React中每次渲染都会传入一个新的props.children到子组件?
  • Sentinel基础知识
  • WT588F02B单片机语音芯片在磁疗仪中的应用介绍
  • 【算法每日一练]-结构优化(保姆级教程 篇6 分块,倍增)#HDU4417超级马里奥 #poj2019玉米田 #POJ3368频繁值
  • Linux下的同步命令代码编写
  • 借助webpack来优化前端性能
  • Linux学习教程(第十一章 Linux高级文件系统管理)二
  • C语言第四十四弹---调整奇偶数顺序
  • 广州数字孪生赋能工业制造,加速推进制造业数字化转型
  • Spark---Spark on Hive
  • 利用proteus实现串口助手和arduino Mega 2560的串口通信