接口限制
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package com.sqx.common.aspect;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.sqx.common.utils.DateUtils;
|
||||
import com.sqx.common.utils.HttpContextUtils;
|
||||
import com.sqx.common.utils.IPUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -10,11 +9,9 @@ import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
import org.aspectj.lang.annotation.Aspect;
|
||||
import org.aspectj.lang.annotation.Pointcut;
|
||||
import org.aspectj.lang.reflect.MethodSignature;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 方法调用统一切面处理
|
||||
@@ -23,12 +20,10 @@ import java.util.Date;
|
||||
@Component
|
||||
@Slf4j
|
||||
public class AppApiMethodAspect {
|
||||
@Pointcut("execution(public * (" +
|
||||
"com.sqx.modules.*.controller.* " +
|
||||
").*(..)) && " +
|
||||
"!execution(public * (" +
|
||||
"com.sqx.modules.*.controller.SysLoginController " +
|
||||
").*(..))")
|
||||
|
||||
@Pointcut("execution(public * (com.sqx.modules.*.controller.*).*(..)) " +
|
||||
"&& " +
|
||||
"!execution(public * (com.sqx.modules.sys.controller.SysLoginController).*(..))")
|
||||
public void pkg() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user