当前位置:网站首页>Solve the circular dependency bug. Relying upon circular references is discouraged and they are prohibited by default.
Solve the circular dependency bug. Relying upon circular references is discouraged and they are prohibited by default.
2022-06-11 13:44:00 【limmmll】
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.The general reason for this error is that : Relying on circular references is discouraged , It's forbidden by default . Update your application to remove bean Dependency loops between . As a last resort , It can be done by putting spring.main.allow-circular-references Set to true To automatically interrupt the loop .
The solution is as follows :
1. If it is .properties file , Add... To the file
spring.main.allow-circular-references=true
2. If it is .yml file , Add to file
spring:
main:
allow-circular-references:true
Then restart the project .
边栏推荐
- Hashicopy之nomad应用编排方案07(提交Job)
- How to write high-performance code (IV) optimize data access
- Unity 检测对象是否在相机的视锥体范围内
- 折叠表达式
- Code comparison tool, I use these six
- Some transformation thoughts of programmers after they are 35 years old
- Please, don't use enumeration types in external interfaces any more!
- 可变参表达式
- Ali talked about the use of strategic mode in the project
- SAP Spartacus checkout 流程使用 url 粘贴直接跳转到 delivery mode不能打开页面的原因
猜你喜欢

程序员到了35岁之后的一些转型思考

Interview to build an aircraft carrier, screw on the job, pay

Ali talked about the use of strategic mode in the project

AGV机器人RFID传感器CK-G06A与西门子1200PLC应用手册

长连接简介

Introduction to common fonts

Is byte really the end of the universe?

阿里一面,谈谈策略模式在项目中的使用

论文导读 | 机器学习在数据库基数估计中的应用

Energy storage operation and configuration analysis of high proportion wind power system (realized by Matlab)
随机推荐
Unsealing easy QF PDA helps enterprises improve ERP management
Using vscode code code template to improve mobx coding efficiency
[Multisim Simulation] 555 flash lamp experiment
Hashicopy之nomad应用编排方案08(检测Job)
Vi LXD deployment of lab server for development records
Debian下设定 TCP/IP 网络
[backtrader source code analysis 46] cerebro Py code comments (boring, one of the core backtrader codes, recommended for reading, comments for reference only)
全球手机市场衰退,连苹果也对iPhone14不抱过高期待
China's SaaS development lags behind that of the United States for 10 years, and it still needs to rely on innovation, open source, M & A and other strategies | archsummit
Operating instructions for communication between RS485 (Modbus RTU) industrial RFID reader ck-fr03-a01 and PLC Mitsubishi fx5u
關於分布式鎖的續命問題——基於Redis實現的分布式鎖
六.开发记录之实验室服务器LXD部署
InfoQ 极客传媒 15 周年庆征文|移动端开发之动态排行【MUI+Flask+MongoDB】
The application of machine learning in database cardinality estimation
Microsoft exposes another "scandal": watching VR porn in the office, "the father of hololens" is about to leave!
Nomad application layout scheme 07 of hashicopy (submit job)
Kubernetes binary installation (v1.20.16) (V) verifying master deployment
自定义Terraform-Providers(Terraform Plugin Framework)-04
Collapse expression
[signal de-noising] chromatographic baseline estimation and de-noising based on sparsity (beads) with matlab code and papers