Is there an unresolvable circular reference?
时间: 2023-10-25 18:01:18 浏览: 166
jBPM4与Spring的集成
回答: "Is there an unresolvable circular reference?"这个问题是关于SpringBoot启动报错的一个常见问题。当看到"Requested bean is currently in creation: Is there an unresolvable circular reference?"这个错误信息时,它是在告诉我们存在一个无法解决的循环引用。循环引用是指两个或多个bean之间相互依赖,但又无法解决依赖关系,导致循环引用。具体解决方法有两种:一种是检查代码中是否存在循环引用的问题,将循环引用解决掉;另一种是在配置文件application.yml中添加allow-circular-references: true属性,允许存在循环引用。但是需要注意的是,这种方式只适用于比较老旧的项目且循环依赖比较多的情况下才使用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Requested bean is currently in creation: Is there an unresolvable circular reference? 原因之一(java...](https://blog.csdn.net/sinat_37792529/article/details/131573638)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Requested bean is currently in creation: Is there an unresolvable circular reference?](https://blog.csdn.net/WY_cat/article/details/102929469)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文