zouxuan 3 년 전
부모
커밋
914df4d7ea

+ 0 - 1
mec-auth/mec-auth-api/src/main/java/com/ym/mec/auth/api/client/SysUserFeignService.java

@@ -16,7 +16,6 @@ import com.ym.mec.common.config.FeignConfiguration;
 import com.ym.mec.common.entity.HttpResponseResult;
 
 @FeignClient(contextId = "sysUserFeignService", name = "auth-server", configuration = { FeignConfiguration.class }, fallback = SysUserFeignServiceFallback.class)
-@Lazy
 public interface SysUserFeignService {
 
 	@GetMapping(value = "user/queryUserById/{userId}")

+ 2 - 0
mec-web/src/main/java/com/ym/mec/web/interceptor/TenantInterceptor.java

@@ -3,6 +3,7 @@ package com.ym.mec.web.interceptor;
 import com.ym.mec.biz.service.TenantInfoService;
 import com.ym.mec.common.tenant.TenantContextHolder;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Component;
 import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
 
@@ -13,6 +14,7 @@ import javax.servlet.http.HttpServletResponse;
 public class TenantInterceptor extends HandlerInterceptorAdapter {
 
 	@Autowired
+	@Lazy
 	private TenantInfoService tenantInfoService;
 
 	@Override