@Component public class OperationLogAspect extends Object
| 构造器和说明 |
|---|
OperationLogAspect() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doAfterReturning(org.aspectj.lang.JoinPoint joinPoint,
Object result)
记录操作日志
|
void |
doAfterThrowing(org.aspectj.lang.JoinPoint joinPoint,
Exception e)
记录异常日志
|
void |
doBefore(org.aspectj.lang.JoinPoint joinPoint) |
void |
operationLog() |
void |
saveLog(org.aspectj.lang.JoinPoint joinPoint,
Object result,
Exception error)
保存操作记录
|
public void operationLog()
public void doAfterReturning(org.aspectj.lang.JoinPoint joinPoint,
Object result)
throws Exception
joinPoint - result - Exceptionpublic void doAfterThrowing(org.aspectj.lang.JoinPoint joinPoint,
Exception e)
throws Exception
joinPoint - e - Exception@Async @Transactional(rollbackFor=java.lang.Exception.class) public void saveLog(org.aspectj.lang.JoinPoint joinPoint, Object result, Exception error) throws Exception
ExceptionCopyright © 2025. All rights reserved.