SpringBoot启动报错Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
报错信息:
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

添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
重启SpringBoot项目即可。
本文解决了一个常见的SpringBoot启动时报错问题:未能正确配置数据源,具体表现为未指定URL属性且无法配置嵌入式数据源。文章提供了添加依赖的方法来解决此问题。
6026

被折叠的 条评论
为什么被折叠?



