|
@@ -1,44 +0,0 @@
|
|
-package com.fdkankan.manage.aop;
|
|
|
|
-
|
|
|
|
-import cn.hutool.core.util.StrUtil;
|
|
|
|
-import com.fdkankan.common.constant.ErrorCode;
|
|
|
|
-import com.fdkankan.common.exception.BusinessException;
|
|
|
|
-import lombok.extern.log4j.Log4j2;
|
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
|
-import org.aspectj.lang.JoinPoint;
|
|
|
|
-import org.aspectj.lang.annotation.After;
|
|
|
|
-import org.aspectj.lang.annotation.Aspect;
|
|
|
|
-import org.aspectj.lang.annotation.Before;
|
|
|
|
-import org.aspectj.lang.annotation.Pointcut;
|
|
|
|
-import org.aspectj.lang.reflect.MethodSignature;
|
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
|
-import org.springframework.core.annotation.Order;
|
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
|
-import org.springframework.web.context.request.RequestContextHolder;
|
|
|
|
-import org.springframework.web.context.request.ServletRequestAttributes;
|
|
|
|
-
|
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
|
-import java.io.IOException;
|
|
|
|
-import java.lang.reflect.Method;
|
|
|
|
-
|
|
|
|
-@Slf4j
|
|
|
|
-@Aspect
|
|
|
|
-@Component
|
|
|
|
-public class PushJmAspect {
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @Pointcut("@annotation(com.fdkankan.manage.aop.PushJm)")
|
|
|
|
- public void servicePush() {
|
|
|
|
- }
|
|
|
|
- @After("servicePush()")
|
|
|
|
- public void doBefore(JoinPoint joinPoint) throws Exception {
|
|
|
|
- MethodSignature signature = (MethodSignature)joinPoint.getSignature();
|
|
|
|
- Method method = signature.getMethod();
|
|
|
|
- PushJm methodAnnotation = method.getAnnotation(PushJm.class);
|
|
|
|
-
|
|
|
|
- String value = methodAnnotation.value();
|
|
|
|
- String desc = methodAnnotation.desc();
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-}
|
|
|