问题描述
配置数据源失败:未指定“url”属性,无法配置嵌入的数据源。
原因:未能确定合适的驱动程序级别
复制代码
1
2
3Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class
解决方案
在启动类添加如下注解
复制代码
1@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
报错现象
最后
以上就是顺利宝贝最近收集整理的关于配置数据源失败问题描述解决方案报错现象的全部内容,更多相关配置数据源失败问题描述解决方案报错现象内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复