Ver Fonte

10.12提交

HUJIANGUO há 3 anos atrás
pai
commit
4cdc943dcf

+ 1 - 1
src/main/java/com/steerinfo/dil/feign/ColumnDataFeign.java

@@ -12,7 +12,7 @@ import java.util.Map;
  * @Date 2021/6/23 9:58
  * @Version 1.0
  */
-@FeignClient(value = "DIL-COLUMN-DATA-DEV",url = "192.168.0.106:8083")
+@FeignClient(value = "DIL-COLUMN-DATA-DEV",url = "${openfeign.ColumnDataFeign.url}")
 public interface ColumnDataFeign {
     @RequestMapping("getColumnData")
     List<Map<String,Object>> getColumnData(@RequestParam("apiId") Integer apiId);

+ 4 - 0
src/main/resources/bootstrap.yml

@@ -12,6 +12,10 @@ spring:
   mvc:
     static-path-pattern:
 
+openfeign:
+  ColumnDataFeign:
+    url: ${COLUMNDATAFEIGN_URL:localhost:8083}
+
 #eureka设置
 eureka:
   client: