我现在想提供一个jar包,这个jar包会拦截指定注解方法,并记录方法前和方法后的数据
1 回答
慕码人8056858
TA贡献1803条经验 获得超6个赞
@Around("@annotation(MyAnnotation)")public Object aroundCut(ProceedingJoinPoint joinPoint) throws Throwable { //before do something
Object result = joinPoint.proceed(); //after do something
return result;
}但是你需要让调用方扫描到你的aop。
添加回答
举报
0/150
提交
取消
