|
@@ -6,10 +6,12 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.common.filters.TenantIdThreadLocal;
|
|
|
+
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.MDC;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
|
|
@@ -23,6 +25,7 @@ public class MDCInterceptor extends HandlerInterceptorAdapter {
|
|
|
|
|
|
private static final String USERNAME = "username";
|
|
|
@Autowired
|
|
|
+ @Lazy
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
@Value("${auth.sysconfig.tenantId}")
|
|
|
private Integer tenantClientId;
|