hr~ 2 dní pred
rodič
commit
9dfeb87357

+ 1 - 1
product-client/src/main/java/com/poyee/api/checklist/CheckListFeignClient.java

@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
 
 import java.util.List;
 
-@FeignClient(name = "checklist-service", url = "http://localhost:8084", decode404 = true, configuration = {FeignConfig.class, FeignDateConfig.class})
+@FeignClient(name = "checklist-service", url = "${feign.client.checklist.url}", decode404 = true, configuration = {FeignConfig.class, FeignDateConfig.class})
 public interface CheckListFeignClient {
 
     @PostMapping("/api/i18n/sysBaseInfo/searchBaseInfoBySelect")

+ 1 - 1
product-client/src/main/java/com/poyee/api/dict/SysDictFeignClient.java

@@ -9,7 +9,7 @@ import org.springframework.web.bind.annotation.PathVariable;
 
 import java.util.List;
 
-@FeignClient(name = "sys-dict-service", url = "http://localhost:8083", decode404 = true, configuration = FeignConfig.class)
+@FeignClient(name = "sys-dict-service", url = "${feign.client.dict.url}", decode404 = true, configuration = FeignConfig.class)
 public interface SysDictFeignClient {
 
     @GetMapping("/api/dict/data/type/{dictType}")

+ 8 - 2
product-web/src/main/resources/application-dev.yml

@@ -32,5 +32,11 @@ logging:
   level:
     com.poyee: debug
     com.baomidou.mybatisplus: debug
-checklist:
-  url: localhostL
+feign:
+  client:
+    checklist:
+      url: http://localhost:8084
+    order:
+     url: http://localhost:8080
+    dict:
+      url: http://localhost:8083

+ 9 - 0
product-web/src/main/resources/application-test.yml

@@ -31,3 +31,12 @@ management:
 logging:
   level:
     com.poyee: info
+
+feign:
+  client:
+    checklist:
+      url: http://localhost:8084
+    order:
+      url: http://localhost:8080
+    dict:
+      url: http://localhost:8083