错误信息:

The bean 'sxbs-mall3.FeignClientSpecification', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.

原因:

springCloud 的2.1.0以上版本的,将不再默认支持 FeignClient 的name属性 的相同名字。 
即 :多个接口上的@FeignClient(“相同服务名”)会报错,overriding is disabled(覆盖 是 禁止的/关闭的)。

解决:

在配置文件中开启覆盖

spring:application:name: goods-webmain:allow-bean-definition-overriding: true

The bean 'xxxx.FeignClientSpecification', defined in null, could not be registered. A bean with that相关推荐

  1. feign报the bean 'item-service.FeignClientSpecification', defined in null, could not be registered.错误

    刚开始 学习使用feign,遇到报错 Description:The bean 'item-service.FeignClientSpecification', defined in null, co ...

  2. SpringBoot报错The bean ‘XXXDao‘, defined in null, could not be registered,overriding is disabled的问题

    完整问题描述: The bean 'xxDao', defined in com.springboot.springbootdemo.dao.es.xxDao defined in @EnableEl ...

  3. 升级SpringCloud到Hoxton.SR3出现The bean 'xxx.FeignClientSpecification' could not be registered. 源码分析和解决

    最近提升项目的SpringCloud版本后出错误导致项目无法启动 关键词 The bean 'xxx.FeignClientSpecification' could not be registered ...

  4. 【解决问题】The bean ‘admin-service.FeignClientSpecification‘ could not be registered.

    项目启动时候出现如下错误: 2023-01-05 15:22:06.272 ERROR 9948 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter ...

  5. 启动maven项目在eclipse中报错 Can‘t find class [×××] for bean with name '××' defined in class path resource

    场景:从svn中检出maven项目到本地,导入到eclipse中运行,启动tomcat时报错: Can't find class [××] for bean with name '××' define ...

  6. Cannot find class [xxx] for bean with name ‘‘ defined in class

    问题:Cannot find class [xxx] for bean with name '' defined in class 提供一种解决办法,也许可以解决你的问题 1 如果这个类是自己写的,c ...

  7. JAVA Cannot find class [×××] for bean with name ‘×ב defined in class path resource [×××] 问题解决方法

    JAVA Cannot find class [×××] for bean with name '××' defined in class path resource [×××] 问题解决方法 参考文 ...

  8. Cannot find class [***] for bean with name '***' defined in file[***]

    Cannot find class [***] for bean with name '***' defined in file[***] 一,开发工具背景: (更好的阅读体验,请移步我的个人博客)使 ...

  9. 将JAVA bean/实体类 中为null的属性值转换成空字符串

    使bean中为null的属性转换成空字符串 获得getter方法 方法有分带参数和不带参数,我们知道getter方法是不带参数的 获得getter方法如下 Method m = model.getCl ...

最新文章

  1. python3 安装包 源码包 下载慢问题 解决方法
  2. java解析xml 忽略dtd_使用dom4j解析XML时候忽略DTD文件
  3. 计算机设计文献参考,优秀计算机设计论文参考文献 计算机设计论文参考文献数量是多少...
  4. java中集合判空_Java中的类型安全的空集合
  5. python数据结构与算法13_python 数据结构与算法 (13)
  6. java 友好时间显示_仿微信的IM聊天时间显示格式(含iOS/Android/Web实现)[图文+源码]...
  7. 阿里巴巴Java开发手册(开发规范)——编程规约笔记
  8. [Learn AF3]第七章 App framework组件之Popup
  9. [C++] 基础知识点:namespace
  10. bzoj 1132: [POI2008]Tro
  11. 基于 pureXML 技术的数据库表结构扩展
  12. 数据挖掘 模型的衡量标准与建模
  13. 使用开源DocX 生成Word
  14. 一个数据录入/查询的应用程序在登录时错误信息解决过程
  15. networking /etc/network/interfaces 笔记221102
  16. 【学习笔记】大数据技术之Flume
  17. 评论中发emoji表情 iOS
  18. 智能家居 打造一间乐享智能生活的“聪明屋”
  19. MTK 平台获取IMSI号码 以及如何截获系统中的各种消息
  20. UML 类图 StarUML---推荐一款UML工具(很好很强大)

热门文章

  1. 基于Golang的对象序列化的程序包开发——myJsonMarshal
  2. 记录win10快捷键
  3. 2022-2028年中国金融安防行业深度调研及投资前景预测报告
  4. 2022-2028年中国数字乡村建设深度调研及投资前景预测报告
  5. SpringBoot服务上线流程
  6. PyTorch代码调试利器_TorchSnooper
  7. linux sh 改 cmd
  8. python性能分析之line_profiler模块-耗时,效率 时间
  9. 命名实体识别学习笔记——使用Ltp
  10. Python错误:AttributeError: 'generator' object has no attribute 'next'解决办法