Springboot启动报错:Failed to determine a suitable driver class
Posted Alan*Chen
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Springboot启动报错:Failed to determine a suitable driver class相关的知识,希望对你有一定的参考价值。
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
原因:
没有配置数据源,但springboot默认启用了数据源配置
解决办法:
启动类添加exclude参数,不启用DataSource
以上是关于Springboot启动报错:Failed to determine a suitable driver class的主要内容,如果未能解决你的问题,请参考以下文章
SpringBoot启动报错Failed to determine a suitable driver class
Springboot启动报错:Failed to determine a suitable driver class
第一个springboot项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no
springboot启动报错 Failed to configure a DataSource: 'url' attribute is not specified and no emb
SpringBoot中使用Kafka报错:Failed to construct kafka consumer
Springboot项目启动报错Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded d