|
@@ -1,11 +1,12 @@
|
|
package shop.alien.second.feign;
|
|
package shop.alien.second.feign;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
|
-@FeignClient(url = "http://localhost:8888", name = "alienStore")
|
|
|
|
|
|
+@FeignClient(name = "alien-store")
|
|
public interface AlienStoreFeign {
|
|
public interface AlienStoreFeign {
|
|
|
|
|
|
@GetMapping("/message/getMessageList")
|
|
@GetMapping("/message/getMessageList")
|