Dubbo分布式架构中 消费者报错Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded
Posted 陶然同学
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Dubbo分布式架构中 消费者报错Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded相关的知识,希望对你有一定的参考价值。
报错信息
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
问题描述
从报错的信息中可以未指定url属性 大概就是没有指定数据库那些 但是我现在在分布式架构中
消费者根本不用去操作数据库
解决方案
在启动类上添加属性,默认不去加载数据库配置
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
以上是关于Dubbo分布式架构中 消费者报错Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded的主要内容,如果未能解决你的问题,请参考以下文章