Expected single matching of application, but found 2 instances, will randomly pick the first one.

在项目启动时发现了警告日志信息意思是:dubbo发现了两个<dubbo:application name=“XXX”/> 实例,随机选择了第一个。

检查配置文件的确是配置了一个,经过Debug,发现在ConfigManger.getConfig(String configType) 方法来看,的确是有两个配置实例。

经过翻看Dubbo的issue,查看到这两个问题:

经过验证第一个问题在其后续的版本:2.7.16并没有解决其问题;

在第二个问题的讨论区发现有人询问上述问题(该问题虽不影响使用,但是对有代码洁癖的人有点。。。),然后其开发人员说在3.0.6 版本开始修复了此问题

https://github.com/apache/dubbo/issues/6461

https://github.com/apache/dubbo/issues/9656

dubbo:application 配置文档:
https://dubbo.apache.org/zh/docs/v2.7/user/references/xml/dubbo-application/

Expected single matching of application, but found 2 instances, will randomly pick the first one.相关推荐

  1. [DUBBO] Expected single matching of monitor, but found 2 instances, will randomly pick the first one

    最近项目由alibaba dubbo升级到apache duboo 项目启动时出现[DUBBO] Expected single matching of monitor, but found 2 in ...

  2. 错误记录:expected single matching bean but found 2

    springboot项目,之前有mysql数据源,现在又新增了clickhouse数据源,于是 新增了一个clickhouseDatasource的配置bean,如下: @Beanpublic Dat ...

  3. Spring项目启动报错No qualifying bean of type [xxx] available: expected single matching bean but found 2

    启动报错: No qualifying bean of type [class1] available: expected single matching bean but found 2,class ...

  4. available: expected single matching bean but found 2

    available: expected single matching bean but found 2: smsLogServiceImpl,ISmsLogService 如上图,是在启动的时候出现 ...

  5. spring依赖注入单元测试:expected single matching bean but found 2

    Spring不但支持自己定义的@Autowired注解,还支持几个由JSR-250规范定义的注解,它们分别是@Resource.@PostConstruct以及@PreDestroy. @Resour ...

  6. 【报错解决】expected single matching bean but found 2

    文章目录 报错信息展示: 项目背景: 报错还原: 原因分析: 解决方案: 方案一:使用@Qualifier注解来指明注入的实例. 方案二:使用@Resource(name="Xxxservi ...

  7. No qualifying bean of type ‘com.itheima.dao.BookDao1‘ available: expected single matching bean 问题解决

    写代码的时候出现了如下错误,错误原因如下:   Mybatis装载了com.itheima.dao包下的所有bean,自然也包括BookDao1,而spring又装载了 com.itheima.dao ...

  8. 解决Hyperledger Fabric通道重复创建问题( readset expected key [Group] /Channel/Application at version 0, but )

    运行如下几行代码即可 docker rm $(docker ps -a | grep "hyperledger/*" | awk "{print \$1}") ...

  9. 源码解析异常is expected to be of type ‘xxx‘ but was actually of type ‘xxx‘ 是如何发生的

    前言 这篇博客是对[@Resource 源码解析]做的一个补丁.主要会讲解在使用@Resource的时候发生的is expected to be of type 'xxx' but was actua ...

最新文章

  1. c++ 小游戏_C/C++编程笔记:C语言写推箱子小游戏,大一学习C语言练手项目
  2. Bioinformatics|癌症细胞系的用药反应预测
  3. LVS TUN模式搭建
  4. 在页面之间传递信息--查询字符串
  5. java 线程崩溃_java语言中application异常退出和线程异常崩溃的捕获方法,并且在捕获的钩子方法中进行异常处理...
  6. MySQL5.6开启慢查询
  7. 一些实用的Javascript代码
  8. SVN合并(merge)的使用
  9. execl用宏查询mysql_关于EXCEL能否用宏直接连到oracle数据库然后取数据
  10. finereport与finebi差别_Finereport和Finebi的区别
  11. 微信小程序 云开发 生成带参数小程序二维码
  12. 第八章 DirectX 3D模型加载和骨骼动画(上)
  13. AT070TN83 V1.0 背光不亮
  14. 如何查看台式机计算机网络密码,如何从计算机检查已知的WiFi密码
  15. 【Web技术】1395- Esbuild Bundler HMR
  16. python开方 运算符_[转载] Python中的算数运算符
  17. 架设Wikipedia的本地镜像(Linux联盟收集整理)
  18. three.js绘制墙体,通过不规则路径生成墙体,3D墙体绘制
  19. opencv里的THRESH_TRIANGLE的原理
  20. 多租户Lesson 09. Miscellaneous

热门文章

  1. 10 Android 植物人大战僵尸-生成僵尸
  2. 如何获得通信达交易接口?
  3. 如何将unitypackage文件导入到unity中?
  4. 网站友链有用吗?怎么交换?注意事项?
  5. python实现复旦大学选课系统自动抢课神器抢课软件Courcegoblin抢课软件ver 1.0
  6. 原创 ORB-SLAM3 LoopClosing+KeyFrameDatabase
  7. Centos 6.3 安装 yozo office (永中office)
  8. virtualbox虚拟机内安装增强功能未能加载虚拟光盘
  9. 华为 vlan 端口隔离
  10. 服务器的智能监控管理结束,HART智能仪表在线监控系统的设计与实现