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

auto-proxy中的被代理类只实例化而没有填充属性? #9

Open
KeenRunner opened this issue Jan 16, 2021 · 1 comment
Open

Comments

@KeenRunner
Copy link

DefaultAdvisorAutoProxyCreator类的postProcessBeforeInstantiation方法中,只是调用了instantiate方法来实例化bean,没有填充属性,不知道算不算一个bug?

@DerekYRC
Copy link
Owner

DerekYRC commented Jan 16, 2021

DefaultAdvisorAutoProxyCreator类的postProcessBeforeInstantiation方法中,只是调用了instantiate方法来实例化bean,没有填充属性,不知道算不算一个bug?

是bug。在populate-proxy-bean-with-property-values分支中修复了,将织入逻辑迁移到BeanPostProcessor#postProcessAfterInitialization,即将DefaultAdvisorAutoProxyCreator#postProcessBeforeInstantiation的内容迁移到DefaultAdvisorAutoProxyCreator#postProcessAfterInitialization中。
详情见“bug fix:没有为代理bean设置属性”小节

微信图片_20210116220140

@DerekYRC DerekYRC reopened this Nov 24, 2022
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