Your method is not wrong, but there’s a better one. You have to cast to MethodSignature
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
Method method = signature.getMethod();
Your method is not wrong, but there’s a better one. You have to cast to MethodSignature
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
Method method = signature.getMethod();