Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource c

spring boot啓動報錯:
Description:spring

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

Reason: Failed to determine a suitable driver classide


Action:ui

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).
url


Process finished with exit code 1spa

 

application.properties文件新增配置:code

spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
相關文章
相關標籤/搜索