bean循环引用问题修改

consider using 'getBeanNamesOfType' with the 'allowEagerInit'

Bean with name 'erpService' has been injected into other beans [incrementServiceImpl,companySaveService,] 

这个问题折腾了挺久.

解决思路. 看最近改了那个类. 从新的bean注入解决.

先将注入的类一个一个注释掉.

找出有问题的类 .然后再看 是那个地方.

erpService 中因为 注入了contractService  然后 里面注入了 contractManager.  

几层里面 又有 ERPBase erpBaseImpl; 的注入.

造成循环引用.

猜你喜欢

转载自fengbin2005.iteye.com/blog/2386209
今日推荐