@Around("@annotation(MyAnnotation)") public Object aroundCut(ProceedingJoinPoint joinPoint) throws Throwable { //before do something Object result = joinPoint.proceed(); //after do something return result; } 但是你需要让调用方扫描到你的aop。
但是你需要让调用方扫描到你的aop。