新建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)

相关文章:

  • 2021-04-16
  • 2021-07-27
  • 2021-09-27
  • 2021-12-29
  • 2021-10-19
  • 2021-07-27
  • 2021-11-07
  • 2021-12-30
猜你喜欢
  • 2021-10-09
  • 2022-01-13
  • 2021-06-11
  • 2021-06-08
  • 2021-12-29
  • 2021-09-19
  • 2021-08-13
  • 2021-10-03
相关资源
相似解决方案