Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could

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

翻译就是:无法配置DataSource:未指定’url’属性,也无法配置嵌入数据源。
报错原因就是,就是你在应用中没有配置datasource的一些相关属性,例如:地址值啊,数据库驱动啊,用户名啊,密码啊,
解决办法就是你可以找到对应属性进行配置,或者你直接使用:
在启动类使用
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})自动配置