Springboot 抛出Failed to determine a suitable driver class异常原因

Posted xingxiaomeng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Springboot 抛出Failed to determine a suitable driver class异常原因相关的知识,希望对你有一定的参考价值。

SpringBoot项目,已经依赖了mysql驱动,却还是无法启动,通过问题排除,如果是启动项目,那么pom值

<packaging>pom</packaging>


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


不能定义在POM文件中

以上是关于Springboot 抛出Failed to determine a suitable driver class异常原因的主要内容,如果未能解决你的问题,请参考以下文章

SpringBoot[Failed to start bean ‘documentationPluginsBootstrapper’]

springboot启动报错:Failed to configure a DataSource

Springboot:解决Failed to load ApplicationContext问题

SpringBoot+WebSocket问题:Failed to register @ServerEndpoint class

SpringBoot启动异常:Reason: Failed to determine a suitable driver class

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