txf 3 年之前
父节点
当前提交
e7a0264351
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 1 1
      src/main/java/com/steerinfo/dil/feign/IMFeign.java
  2. 4 1
      src/main/resources/bootstrap.yml

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

@@ -7,7 +7,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
 
 
 import java.util.HashMap;
 import java.util.HashMap;
 
 
-@FeignClient(value = "DIL-IM-DEV", url = "172.16.33.166:8055")
+@FeignClient(value = "DIL-IM-DEV", url = "${openfeign.imFeign.url}")
 public interface IMFeign {
 public interface IMFeign {
     @PostMapping("/websocket/sendToUser")
     @PostMapping("/websocket/sendToUser")
     @ResponseBody
     @ResponseBody

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

@@ -40,7 +40,10 @@ redis:
     time: 864000000
     time: 864000000
   database: 0
   database: 0
 
 
-
+openfeign:
+#正式环境
+  imFeign:
+    url: ${IMFEIGN_URL:172.16.33.166:8055}
 
 
 mybatis:
 mybatis:
   type-aliases-package: com.steerinfo.dil.model
   type-aliases-package: com.steerinfo.dil.model