String className = joinPoint.getSignature().getDeclaringTypeName();
String methodName = joinPoint.getSignature().getName();
MethodSignature methodSignature = (MethodSignature)joinPoint.getSignature();
Class clazz = methodSignature.getReturnType();
如果是环绕通知参数ProceedingJoinPoint
Object result = proceedingJoinPoint.proceed();//放行执行目标方法
有返回值,需要把该返回值return出去
Spring AOP通知参数JoinPoint的几个常用API
原文:https://www.cnblogs.com/xjs1874704478/p/13966654.html