|
@@ -1,21 +1,18 @@
|
|
-package com.smcic.api.neican.aspect;
|
|
|
|
|
|
+package com.smcic.api.admin.aspect;
|
|
|
|
|
|
-import com.smcic.api.neican.service.impl.RoleAclModuleServiceImpl;
|
|
|
|
|
|
+import com.smcic.api.admin.service.impl.RoleAclModuleServiceImpl;
|
|
import com.smcic.core.advice.APIException;
|
|
import com.smcic.core.advice.APIException;
|
|
import com.smcic.core.auth.HttpContextUtil;
|
|
import com.smcic.core.auth.HttpContextUtil;
|
|
import org.aspectj.lang.JoinPoint;
|
|
import org.aspectj.lang.JoinPoint;
|
|
-import org.aspectj.lang.Signature;
|
|
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
import org.aspectj.lang.annotation.Before;
|
|
import org.aspectj.lang.annotation.Before;
|
|
import org.aspectj.lang.annotation.Pointcut;
|
|
import org.aspectj.lang.annotation.Pointcut;
|
|
-import org.aspectj.lang.reflect.MethodSignature;
|
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
-import java.lang.reflect.Method;
|
|
|
|
|
|
|
|
@Aspect
|
|
@Aspect
|
|
@Component
|
|
@Component
|
|
@@ -24,7 +21,7 @@ public class AclAspect {
|
|
@Resource
|
|
@Resource
|
|
private RoleAclModuleServiceImpl roleAclModuleService;
|
|
private RoleAclModuleServiceImpl roleAclModuleService;
|
|
|
|
|
|
- @Pointcut("execution(* com.smcic.api.neican.controller.*Controller.*(..))")
|
|
|
|
|
|
+ @Pointcut("execution(* com.smcic.api.admin.controller.*Controller.*(..))")
|
|
public void logPointCut(){}
|
|
public void logPointCut(){}
|
|
|
|
|
|
/** 前置通知 */
|
|
/** 前置通知 */
|