소스 검색

编辑权限

dengsixing 2 년 전
부모
커밋
6329512708
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/main/java/com/fdkankan/scene/Interceptor/CheckPermitAspect.java

+ 2 - 0
src/main/java/com/fdkankan/scene/Interceptor/CheckPermitAspect.java

@@ -28,6 +28,7 @@ import org.aspectj.lang.annotation.Before;
 import org.aspectj.lang.annotation.Pointcut;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.cloud.context.config.annotation.RefreshScope;
 import org.springframework.core.annotation.Order;
 import org.springframework.stereotype.Component;
 import org.springframework.web.context.request.RequestContextHolder;
@@ -37,6 +38,7 @@ import org.springframework.web.context.request.ServletRequestAttributes;
 @Aspect
 @Component
 @Order(101)
+@RefreshScope
 public class CheckPermitAspect {
 
 	@Value("${4dkk.manageService.basePath}")