文章目录

  • 前因
  • 报错内容
  • 解决方案

前因

这俩天闲来无事想搭建一套最新版本的微服务,顺便写博客记录一下,我用的是当前时间(2022-04-14)最新版本


报错内容

Description:The dependencies of some of the beans in the application context form a cycle:com.alibaba.cloud.dubbo.autoconfigure.DubboLoadBalancedRestTemplateAutoConfiguration (field private com.alibaba.cloud.dubbo.metadata.repository.DubboServiceMetadataRepository com.alibaba.cloud.dubbo.autoconfigure.DubboLoadBalancedRestTemplateAutoConfiguration.repository)↓com.alibaba.cloud.dubbo.metadata.repository.DubboServiceMetadataRepository (field private com.alibaba.cloud.dubbo.service.DubboMetadataServiceProxy com.alibaba.cloud.dubbo.metadata.repository.DubboServiceMetadataRepository.dubboMetadataConfigServiceProxy)↓com.alibaba.cloud.dubbo.service.DubboMetadataServiceProxy
┌─────┐
|  com.alibaba.cloud.dubbo.autoconfigure.DubboMetadataAutoConfiguration (field private com.alibaba.cloud.dubbo.metadata.resolver.MetadataResolver com.alibaba.cloud.dubbo.autoconfigure.DubboMetadataAutoConfiguration.metadataResolver)
└─────┘Action:Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
  • 翻译
    不鼓励依赖循环引用,默认情况下禁止使用循环引用。更新应用程序以消除bean之间的依赖循环。作为最后手段,通过设置弹簧,可能会自动中断循环。主要的允许循环引用true。

解决方案

application.properties

spring.main.allow-circular-references=true
不知道是为什么会出现这个错误,暂时只能先这么设置

SpringCloudAlibaba踩坑日记(二)Relying upon circular references is discouraged and they are prohibited by相关推荐

  1. Relying upon circular references is discouraged and they are prohibited by default.

    解决升级 Spring Boot 2.6后,因循环引用导致启动时报错的问题 Relying upon circular references is discouraged and they are p ...

  2. Relying upon circular references is discouraged and they are prohibited by default.循环依赖bug解决

    Relying upon circular references is discouraged and they are prohibited by default.循环依赖bug解决 bug展示 b ...

  3. SpringBoot使用PageHelper报错Relying upon circular references is discouraged and they are prohibited by

    SpringBoot使用PageHelper报错Relying upon circular references is discouraged and they are prohibited by d ...

  4. Relying upon circular references is discouraged and they are prohibited by default 循环依赖bug解决

    问题: 因为业务原因,将springboot升级到2.6.4,启动项目出现这样的bug Error starting ApplicationContext. To display the condit ...

  5. 使用RENREN-GENERATOR时遇到循环错误问题 Relying upon circular references is discouraged and they are prohibited

    这是由于所使用的SPRING-BOOT版本较高缘故,若SPRING-BOOT版本大于2.6.x,就会出现该错误,此时只需要在application.yml文件作出如下改变: server:port: ...

  6. springboot2.6版本因循环引用导致启动时报错的问题Relying upon circular references is discouraged and they are prohibite

    报错信息: Description:The dependencies of some of the beans in the application context form a cycle:┌──- ...

  7. 【Flutter混合开发踩坑日记之‘applicationVariants‘ for extension ‘android‘】

    Flutter混合开发踩坑日记之'applicationVariants' for extension 'android' 正文 坑一:Could not get unknown property ' ...

  8. ReactNative 在丁香医生项目中引入的踩坑日记

    ReactNative 在丁香医生项目中引入的踩坑日记 this没绑定到函数导致空指针 参考 React-Native 踩坑第二弹-undefined is not a function(evalua ...

  9. Antd Pro V4 protable详解(ps:踩坑日记)

    Antd Pro V4 protable详解(ps:踩坑日记) 写在前面: 在这篇文章中,你会了解到: protable 中的cloumns属性详解 protable数据加载和处理(两种方法,直接使用 ...

最新文章

  1. 重磅推出校园疫情填报系统,永洪BI助力疫情防控
  2. 面试官:InnoDB中一棵B+树可以存放多少行数据?
  3. java web 的开发环境_JAVA WEB开发环境与搭建
  4. Codeforces Round #725 (Div. 3) 题解
  5. Linux中常用命令(文件与目录)
  6. zookeeper 负载均衡 概念笔记
  7. delphi组件读写机制
  8. 如何在arcmap中使用取色器
  9. UE for Mac 破解方法
  10. mac安装指定版本的ruby_Mac 下安装Ruby环境
  11. 语音助手——未来趋势
  12. Pycharm生成决策树
  13. 寻找“安全圈锦鲤” | 4万粉丝,独宠你一人(倒计时2天)
  14. 2022软工-安庆集团-冲刺计划
  15. 如何去除图片雾化?给你推荐图片去雾怎么去除的方法
  16. 4 个分析 GameFi 项目的工具
  17. 系统分析师和系统架构师的区别?
  18. linux 文件755权限的意思,Linux文件和目录的777、755、644权限解释
  19. office2010打开excel文档时为空白的解决方法
  20. codeblocks错误

热门文章

  1. Tableau 巴西世界杯(八)红黄牌
  2. Win7下MSP430 launchpad 驱动无法安装的问题
  3. 形态学 - 边界提取
  4. 贾跃亭不是老赖?网传贾跃亭已偿还200亿债务,你怎么看?...
  5. 世界各地主流,非主流搜索引擎以及功能性搜索引擎一览(转)
  6. 自己动手写个病毒专杀工具
  7. MySQL字符串处理函数的用法及使用举例
  8. C++学习笔记(更新)
  9. 【Qt】Use multi-arg instead
  10. 使用vika维格表来管理寺庙原来如此轻松~