@Component public class AccessLogAspect extends Object
| 构造器和说明 |
|---|
AccessLogAspect() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accessLogPointCut()
Controller层切点 注解拦截
|
void |
doAfter(org.aspectj.lang.JoinPoint joinPoint)
后置通知 用于拦截Controller层记录用户的操作
|
void |
doAfterThrowing(org.aspectj.lang.JoinPoint joinPoint,
Throwable e)
异常通知
|
void |
doBefore(org.aspectj.lang.JoinPoint joinPoint)
前置通知 用于拦截Controller层记录用户的操作的开始时间
|
static String |
getControllerMethodDescription(org.aspectj.lang.JoinPoint joinPoint)
获取注解中对方法的描述信息 用于Controller层注解
|
public void accessLogPointCut()
public void doBefore(org.aspectj.lang.JoinPoint joinPoint)
throws InterruptedException
joinPoint - 切点InterruptedExceptionpublic void doAfter(org.aspectj.lang.JoinPoint joinPoint)
joinPoint - 切点public void doAfterThrowing(org.aspectj.lang.JoinPoint joinPoint,
Throwable e)
joinPoint - e - public static String getControllerMethodDescription(org.aspectj.lang.JoinPoint joinPoint)
joinPoint - 切点Copyright © 2020. All rights reserved.