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

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

解决办法:在启动类中加上注解:

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)

或者在配置文件中加上数据库相关配置

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

上一篇:UiPath网页元素选择器-WEBCTRL


下一篇:vue-config.js配置(多页面应用以及打包后图片文件的引用路径改为cdn路径)