Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
Posted 永旗狍子
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
报错信息如下:
Description:
描述:
Failed to configure a Datasource:' url' attribute is not specified and no embedded datasource could be configured.
未能配置Datasource:“URL”属性未指定,也无法配置嵌入式数据源。
Reason: Failed to determine a suitable driver class
原因:未能确定合适的驱动程序类
由上可知,当你项目需要自定义数据源的时候,或者不想系统自动注入数据源的时候,就把它排除掉。
在主启动类的注解中加上
exclude = DataSourceAutoConfiguration.class
以上是关于Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could的主要内容,如果未能解决你的问题,请参考以下文章
struts报错严重: Dispatcher initialization failed Unable to load configuration.
Failed to upgrade Oracle Cluster Registry configuration(root.sh)
安装Intel HAXM:"failed to configure driver unknown error. failed to open driver"
Failed to configure a DataSource 'url' attribute问题解决
springboot启动报错:Failed to configure a DataSource
Springboot Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded