其他分享
首页 > 其他分享> > SpringBoot启动报错Failed to determine a suitable driver class

SpringBoot启动报错Failed to determine a suitable driver class

作者:互联网

SpringBoot启动报错Failed to determine a suitable driver classSpringBoot启动报错Failed to determine a suitable driver class

我的错误原因与网上其他的原因不同,故记录

项目结构:

我的项目是有继承关系的多模块结构

image

image
其中springboot的启动项在api模块中,由于项目原因,我将api模块中的springboot配置文件后缀properties修改为yml后,出现了如下报错

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

于是我按照网上的解决方案尝试修复,均不见效,最后是将后缀名改回properties才恢复正常(配置文件是空的)

不清楚错误原因

标签:SpringBoot,driver,Failed,报错,determine,suitable,class
来源: https://www.cnblogs.com/whyblogs/p/15079272.html