aop中获取方法的注解

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

public Object around(ProceedingJoinPoint pjp, ApiLog apiLog) {
     //注解信息
     apiLog.type();
     apiLog.name();
     Object result = pjp.proceed();
     return result;
}
posted @ 2018-06-05 16:05  lakeslove  阅读(2468)  评论(0编辑  收藏  举报