Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代理对象 循环依赖 #79

Open
wakingupdelta opened this issue Aug 20, 2024 · 1 comment
Open

代理对象 循环依赖 #79

wakingupdelta opened this issue Aug 20, 2024 · 1 comment

Comments

@wakingupdelta
Copy link

作者,您好!
分支circular-reference-with-proxy-bean的CircularReferenceWithProxyBeanTest的调试结果如下, 代理对象a的属性b并没有被注入。
原因可能是方法AbstractAutowireCapableBeanFactory#doCreateBean对属性赋值是针对原始bean,代理bean的属性并没有得到更新?
image

@yyuiy
Copy link

yyuiy commented Dec 19, 2024

是的,只对原始对象赋值了,没有对代理对象赋值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants