Package com.bytedesk.core.aop
Class ActionAspect
java.lang.Object
com.bytedesk.core.aop.ActionAspect
操作日志记录处理
注意:不能在类上注解@Async,否则会获取不到 HttpServletRequest,attributes为空。
如果不需要HttpServletRequest,可以添加@Async注解
- Author:
- jackning
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doAfterReturning
(org.aspectj.lang.JoinPoint joinPoint, ActionAnnotation actionAnnotation, Object jsonResult) 处理完请求后执行void
doAfterThrowing
(org.aspectj.lang.JoinPoint joinPoint, ActionAnnotation actionAnnotation, Exception e) 拦截异常操作void
doBefore
(org.aspectj.lang.JoinPoint joinPoint, ActionAnnotation actionAnnotation) 处理请求前执行
-
Field Details
-
actionService
-
ipService
-
-
Constructor Details
-
ActionAspect
public ActionAspect()
-
-
Method Details
-
doBefore
处理请求前执行 -
doAfterReturning
public void doAfterReturning(org.aspectj.lang.JoinPoint joinPoint, ActionAnnotation actionAnnotation, Object jsonResult) 处理完请求后执行- Parameters:
joinPoint
- 切点
-
doAfterThrowing
public void doAfterThrowing(org.aspectj.lang.JoinPoint joinPoint, ActionAnnotation actionAnnotation, Exception e) 拦截异常操作- Parameters:
joinPoint
- 切点e
- 异常
-