|
@@ -11,6 +11,7 @@ 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.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
+import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
import org.springframework.core.annotation.Order;
|
|
import org.springframework.core.annotation.Order;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
@@ -19,6 +20,7 @@ import org.springframework.web.context.request.ServletRequestAttributes;
|
|
@Log4j2
|
|
@Log4j2
|
|
@Aspect
|
|
@Aspect
|
|
@Component
|
|
@Component
|
|
|
|
+@ConditionalOnProperty(name = "inner.check", havingValue = "true")
|
|
@Order(101)
|
|
@Order(101)
|
|
public class CheckInnerApiPermitAspect {
|
|
public class CheckInnerApiPermitAspect {
|
|
|
|
|