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());
        }
    }

猜你喜欢

转载自blog.csdn.net/hacker_Lees/article/details/84989240