新建springboot项目启动报错如下

Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2018-09-13 15:43:37.061 ERROR 3056 — [ main] o.s.b.d.LoggingFailureAnalysisReporter :

*****************

APPLICATION FAILED TO START

*****************

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项目启动报错

启动类上加上,就可以了

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)

相关文章: