@Component public class OperateLogAspect extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String[] |
EXCLUDE_PROPERTIES
排除敏感属性字段
|
| 构造器和说明 |
|---|
OperateLogAspect() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doAfterReturning(org.aspectj.lang.JoinPoint joinPoint,
OperateLogAnnotation controllerLog,
Object jsonResult)
处理完请求后执行
|
void |
doAfterThrowing(org.aspectj.lang.JoinPoint joinPoint,
OperateLogAnnotation controllerLog,
Exception e)
拦截异常操作
|
void |
getControllerMethodDescription(org.aspectj.lang.JoinPoint joinPoint,
OperateLogAnnotation log,
OperateLogBO operateLogBO,
Object jsonResult)
获取注解中对方法的描述信息 用于Controller层注解
|
protected void |
handleLog(org.aspectj.lang.JoinPoint joinPoint,
OperateLogAnnotation controllerLog,
Exception e,
Object jsonResult)
处理日志
|
boolean |
isFilterObject(Object o)
判断是否需要过滤的对象。
|
protected static final String[] EXCLUDE_PROPERTIES
public void doAfterReturning(org.aspectj.lang.JoinPoint joinPoint,
OperateLogAnnotation controllerLog,
Object jsonResult)
joinPoint - 切点public void doAfterThrowing(org.aspectj.lang.JoinPoint joinPoint,
OperateLogAnnotation controllerLog,
Exception e)
joinPoint - 切点e - 异常protected void handleLog(org.aspectj.lang.JoinPoint joinPoint,
OperateLogAnnotation controllerLog,
Exception e,
Object jsonResult)
joinPoint - 连接点controllerLog - 日志注解e - 异常信息jsonResult - 结果public void getControllerMethodDescription(org.aspectj.lang.JoinPoint joinPoint,
OperateLogAnnotation log,
OperateLogBO operateLogBO,
Object jsonResult)
log - 操作日志注解operateLogBO - 操作日志public boolean isFilterObject(Object o)
o - 对象信息。Copyright © 2024. All rights reserved.