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

关于ControllerAOP的一个疑问 #7

Open
tongsh6 opened this issue Feb 1, 2019 · 1 comment
Open

关于ControllerAOP的一个疑问 #7

tongsh6 opened this issue Feb 1, 2019 · 1 comment

Comments

@tongsh6
Copy link

tongsh6 commented Feb 1, 2019

public class ControllerAOP {
private static final Logger logger = LoggerFactory.getLogger(ControllerAOP.class);

@Pointcut("execution(public cn.xiaowenjie.common.beans.ResultBean *(..))")
public void controllerMethod() {
}

.....
}
为什么这个切点
@pointcut("execution(public cn.xiaowenjie.common.beans.ResultBean *(..))")
是切的ResultBean?
我的理解一般,会对controller类进行切面,这里对ResultBean进行切面,是什么作用和道理呢?
还请指导,谢谢。

@18113996630
Copy link

同问

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