原文:Spring循环依赖报错Bean with name '**' has been injected into other beans [**] in its raw version as part

异常详情 Bean with name commonService has been injected into other beans in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use th ...

2022-03-08 17:38 0 1239 推荐指数:

查看详情

Bean with name 'xxxxxx' has been injected into other beans

首先说一下什么是依赖循环,比如:我现在有一个ServiceA需要调用ServiceB的方法,那么ServiceA就依赖于ServiceB,那在ServiceB中再调用ServiceA的方法,就形成了循环依赖Spring在初始化bean的时候就不知道先初始化哪个bean就会报错 ...

Tue Jan 28 17:51:00 CST 2020 0 2025
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM