SpringCloudAlibaba踩坑日记(二)Relying upon circular references is discouraged and they are prohibited by
文章目录
- 前因
- 报错内容
- 解决方案
前因
这俩天闲来无事想搭建一套最新版本的微服务,顺便写博客记录一下,我用的是当前时间(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相关推荐
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 使用RENREN-GENERATOR时遇到循环错误问题 Relying upon circular references is discouraged and they are prohibited
这是由于所使用的SPRING-BOOT版本较高缘故,若SPRING-BOOT版本大于2.6.x,就会出现该错误,此时只需要在application.yml文件作出如下改变: server:port: ...
- 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:┌──- ...
- 【Flutter混合开发踩坑日记之‘applicationVariants‘ for extension ‘android‘】
Flutter混合开发踩坑日记之'applicationVariants' for extension 'android' 正文 坑一:Could not get unknown property ' ...
- ReactNative 在丁香医生项目中引入的踩坑日记
ReactNative 在丁香医生项目中引入的踩坑日记 this没绑定到函数导致空指针 参考 React-Native 踩坑第二弹-undefined is not a function(evalua ...
- Antd Pro V4 protable详解(ps:踩坑日记)
Antd Pro V4 protable详解(ps:踩坑日记) 写在前面: 在这篇文章中,你会了解到: protable 中的cloumns属性详解 protable数据加载和处理(两种方法,直接使用 ...
最新文章
- 重磅推出校园疫情填报系统,永洪BI助力疫情防控
- 面试官:InnoDB中一棵B+树可以存放多少行数据?
- java web 的开发环境_JAVA WEB开发环境与搭建
- Codeforces Round #725 (Div. 3) 题解
- Linux中常用命令(文件与目录)
- zookeeper 负载均衡 概念笔记
- delphi组件读写机制
- 如何在arcmap中使用取色器
- UE for Mac 破解方法
- mac安装指定版本的ruby_Mac 下安装Ruby环境
- 语音助手——未来趋势
- Pycharm生成决策树
- 寻找“安全圈锦鲤” | 4万粉丝,独宠你一人(倒计时2天)
- 2022软工-安庆集团-冲刺计划
- 如何去除图片雾化?给你推荐图片去雾怎么去除的方法
- 4 个分析 GameFi 项目的工具
- 系统分析师和系统架构师的区别?
- linux 文件755权限的意思,Linux文件和目录的777、755、644权限解释
- office2010打开excel文档时为空白的解决方法
- codeblocks错误