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