spring aop 执行顺序

WebAspect   切面
@Pointcut("execution(public * cn.com.alum.app.controllers.*.*(..))")

System.err.println("1");
Object o =  pjp.proceed();
System.err.println("2");


UserAccessAspect  切面  (自定义注解)
@Pointcut(value = "@annotation(cn.com.alum.core.annotation.UserAccess)")


System.err.println("3");
Object o =  pjp.proceed();
System.err.println("4");

--------------------------
输出: 3 1 4 2

posted @ 2018-04-19 09:34  变换  阅读(971)  评论(0编辑  收藏  举报