Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

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

解决办法:在启动类中加上注解:

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)

或者在配置文件中加上数据库相关配置

原文地址:https://www.cnblogs.com/liqinzhen/p/13554908.html