SpringBoot2.1.x報錯循環依賴問題解決方法

最近的springboot項目開發時運行沒問題,打包運行時報錯:拋出BeanCurrentlyIn CreationException異常:Requested bean is currently in creation: Is there an unresolvable circular reference? 查了下原因是循環依賴問題。 什麼是循環依賴? 當我們有兩個(當然也可能是多個)類A、B,
相關文章
相關標籤/搜索