Commit ed3dc9a7 authored by 黎博's avatar 黎博

update

parent f5b16267
......@@ -12,6 +12,7 @@ import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.DefaultParameterNameDiscoverer;
......@@ -39,7 +40,7 @@ public class RecordOperationAspect {
@Autowired
UserBehaviorRecordService userBehaviorRecordService;
@After("@annotation(cn.qg.holmes.config.annotation.RecordOperation)")
@Before("@annotation(cn.qg.holmes.config.annotation.RecordOperation)")
public void after(JoinPoint joinPoint) {
// 获取token,并根据token获取到用户名
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment