方法签名_spring aop_around

//注解签名 方法签名
        Signature signature = pjp.getSignature();
        MethodSignature methodSignature= (MethodSignature) signature;
        //首先判断是否具有某注解
        if(methodSignature.getMethod().isAnnotationPresent(RequestMapping.class)){
            sysLog.setMethod(methodSignature.getMethod().getName());
            sysLog.setAction(methodSignature.getMethod().getAnnotation(RequestMapping.class).name());
        }
        sysLogService.save(sysLog);
        return pjp.proceed();
原文地址:https://www.cnblogs.com/aihuadung/p/11154871.html