原文: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