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)

posted @ 2022-11-09 08:11  陶然同学  阅读(24)  评论(0编辑  收藏  举报