Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
Failed to not and is No url could
2023-09-11 14:15:13 时间
springboot中如果在项目pom引入了SpringBoot集成mybatis框架的依赖,就必须要配置数据库连接信息,否则启动就会报错,错误如下:
***************************
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).
去除pom中相关依赖即可
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.4</version>
</dependency>
相关文章
- [Android] Eclipse错误:Conversion to Dalvik format failed with error 1
- MySQL复制报错(Slave failed to initialize relay log info structure from the repository)
- linux - mysql 异常:MySQL Daemon failed to start.
- ORACLE查看补丁出现“OPatch failed with error code 1”
- ADB server didn't ACK * failed to start daemon *
- frida环境问题解决Failed to enumerate processes: this feature requires an iOS Developer Disk Image to be mounted;
- EasyPusher华为手机直播推流硬编码[OMX.IMG.TOPAZ.Encoder] failed to set input port definition parameters.
- SAP云平台部署HTML5应用时的错误消息Failed to report quota consumption
- VM启动报错Cannot open the disk,Failed to lock the file
- SAP 云平台部署应用时遇到的 502 Updating service failed - Bad Gateway 错误消息
- 成功解决matplotlib.units.ConversionError: Failed to convert value(s) to axis units: ‘LiR‘
- 已解决Message: unknown error: Chrome failed to start: crashed (chrome not reachable)
- Mac 下python3 [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 解决方法
- error: src refspec master does not match any error: failed to push some refs to 新安装 gitlab 报错
- 解决nvidia-docker 问题 nvidia-docker | Error: failed to run docker command
- Maven deploy报错:Failed to deploy artifacts: Could not transfer artifact from/to snapshots 401 Unauthorized
- Failed to load resource: net::ERR_CLEARTEXT_NOT_PERMITTED
- Failed to find Build Tools revision 27.0.3
- Failed to start mongod.service: Unit mongod.service not found