宋子宪博客

Szx

DataSource:'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.解决方法
Error starting ApplicationContext. To display the conditi...
扫描右侧二维码阅读全文
20
2019/08

DataSource:'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.解决方法

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-08-19 23:46:51.507 ERROR 13304 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

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

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
    If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
    If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).


Process finished with exit code 1

spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
翻译:“spring.datasource。未指定url',也无法自动配置嵌入式数据源。
解决方法:检查application.yml中的数据库连接信息是否正确

Last modification:August 20th, 2019 at 12:01 am
如果觉得这篇技术文章对您有帮助,可以请博主喝一杯饮料

2 comments

  1. 搬瓦工

    学习了

    1. Szx
      @搬瓦工

      互相学习

Leave a Comment