http://xiangai.taobao.com
http://shop148612228.taobao.com

xxxservice中添加了@Async的注解导致的循环依赖

Error creating bean with name 'xxxxService': Bean with name 'xxxxService' 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 the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.
 
 
最后发现是在xxxservice中添加了@Async的注解导致的。
 
 
最后再附上搜索到的一篇为什么会出现这种情况的博客:
https://www.jb51.net/article/185794.htm
https://blog.csdn.net/qq_42435377/article/details/114382591

 

posted @ 2021-04-30 22:31  万事俱备就差个程序员  阅读(244)  评论(0编辑  收藏  举报

http://xiangai.taobao.com
http://shop148612228.taobao.com
如果您觉得对您有帮助.领个红包吧.谢谢.
支付宝红包
微信打赏 支付宝打赏