当前位置:网站首页>解决循环依赖BUG。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.
2022-06-11 13:42: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.这个错误的大致原因是说:不鼓励依赖循环引用,默认情况下是禁止的。更新您的应用程序以删除 bean 之间的依赖循环。作为最后的手段,可以通过将 spring.main.allow-circular-references 设置为 true 来自动中断循环。
解决方法如下:
1.如果是.properties文件,在文件中添加
spring.main.allow-circular-references=true
2.如果是.yml文件,则在文件中添加
spring:
main:
allow-circular-references:true
然后重新启动项目就可以了。
边栏推荐
- On software defects and loopholes
- tp6基于whoops的异常接管(漂亮的界面)
- cadence SPB17.4 - allegro - allegro_free_viewer
- Go 如何减少供应链攻击?
- Introduction to common fonts
- Collapse expression
- 二十八-三维点云实时和离线生成二维栅格、三维栅格地图
- Please, don't use enumeration types in external interfaces any more!
- [filter] design of time-varying Wiener filter based on MATLAB [including Matlab source code 1870]
- Terraform + Ansible实现基础设施及配置管理
猜你喜欢

Energy storage operation and configuration analysis of high proportion wind power system (realized by Matlab)

Using vscode code code template to improve mobx coding efficiency

Variable parameter expression

Please, don't use enumeration types in external interfaces any more!

關於分布式鎖的續命問題——基於Redis實現的分布式鎖

The end of an era! After ten years, Wu Enda's classic machine learning course closed its registration this month and launched a new course

On the continuing Life of Distributed Locks - - Distributed Locks Based on redis

Today in history: Apple II comes out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word "software engineering" was born

AGV robot RFID sensor ck-g06a and Siemens 1200plc Application Manual

BS-XX-007基于JSP实现户籍管理系统
随机推荐
六.开发记录之实验室服务器LXD部署
Question bank and answers for 2022 tool fitter (intermediate) operation certificate examination
Debian下设定 TCP/IP 网络
The application of machine learning in database cardinality estimation
Add environment path
Customize terrain providers (terrain plugin framework) -04
D interval to nullable conversion
Terraform + Ansible实现基础设施及配置管理
可变参表达式
C # set the cursor shape of forms and systems
cadence SPB17.4 - allegro - allegro_ free_ viewer
全球手机市场衰退,连苹果也对iPhone14不抱过高期待
cadence SPB17.4 - group operation(add to group, view group list, delete group)
The tree (AVL, 2-3-, red black, Huffman)
Question bank and answers for 2022 tool fitter (intermediate) operation certificate examination
Explain in detail the differences between real participation formal parameters in C language
Nomad application layout scheme 07 of hashicopy (submit job)
Unsealing easy QF PDA helps enterprises improve ERP management
Is byte really the end of the universe?
如何写出高性能代码(四)优化数据访问