|
@@ -3,6 +3,7 @@ package com.ym.mec.auth.api.client;
|
|
|
import java.util.List;
|
|
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
+import org.springframework.context.annotation.Lazy;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
@@ -15,6 +16,7 @@ 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}")
|