|
代码如下 @Around("execution(* com.dong.test.*.*(..))")
public Object authority(ProceedingJoinPoint jp) throws Throwable{
System.out.println("模拟开始权限检查");
Object ob = jp.proceed(new String[]{"dong"});
System.out.println("模拟结束之后权限检查");
return ob + "增加的结果";
}
结果竟然是 |
|
![]() 28分 |
dong hello,spring Aop增加的结果 你是在代理对象调用完才打印的吧,你换成在代理类的业务方法中打印
|
