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

所有支持aop的类必须要从容器里面获取它的代理对象? #1459

Open
xioayangguang opened this issue Dec 29, 2021 · 1 comment
Assignees

Comments

@xioayangguang
Copy link

我看aop相关的源代码感觉所有支持aop的类必须要从容器里面获取它的代理对象,不能直接new一个 对象然后调用它的方法,否则无法实现aop,我理解的对吗?求告知

@inhere
Copy link
Member

inhere commented Dec 30, 2021

是的。aop代理类是注入了代码的,直接new 原始类不会生效

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

No branches or pull requests

3 participants