spring注解切面@AfterReturning取返回值

 /**
     * 案件状态更新的通知
     *
     * @param joinPoint joinPoint
     */
    @AfterReturning(value = "alertsCaseInfoPointcut()", returning = "result")
    public void doAfterUpdateCaseInfoStatus(JoinPoint joinPoint, Boolean result) {
        try {
            if (result) {
                system.println("i am  in now")
            }
        } catch (ExecutionException | InterruptedException e) {
            e.printStackTrace();
            log.error("切面异常-->{}", e.getMessage());
        }
    }

你可能感兴趣的:(Spring)