aop中获取方法的注解

@Around(value="@annotation(apiLog)")

public  Object around(ProceedingJoinPoint pjp, ApiLog apiLog) {
      //注解信息
      apiLog.type();
      apiLog.name();
      Object result = pjp.proceed();
      return  result;
}

猜你喜欢

转载自www.cnblogs.com/lakeslove/p/9140287.html
今日推荐