一只彩色的熊猫

导航

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才恢复正常(配置文件是空的)

不清楚错误原因

posted on 2021-07-30 13:53  一只彩色的熊猫  阅读(773)  评论(0编辑  收藏  举报