Kaynağa Gözat

ai调用地址改成可配置项

gaodm 6 yıl önce
ebeveyn
işleme
b18533f096

+ 3 - 1
config-server/src/main/resources/shared/triage-service-dev.yml

@@ -91,4 +91,6 @@ mybatis-plus:
   configuration:
     map-underscore-to-camel-case: true
     cache-enabled: false
-
+ai:
+  server:
+    address: http://192.168.2.234:8080

+ 3 - 1
config-server/src/main/resources/shared/triage-service-local.yml

@@ -91,4 +91,6 @@ mybatis-plus:
   configuration:
     map-underscore-to-camel-case: true
     cache-enabled: false
-
+ai:
+  server:
+    address: http://192.168.2.234:8080

+ 3 - 1
config-server/src/main/resources/shared/triage-service-pro.yml

@@ -91,4 +91,6 @@ mybatis-plus:
   configuration:
     map-underscore-to-camel-case: true
     cache-enabled: false
-
+ai:
+  server:
+    address: http://192.168.2.234:8080

+ 3 - 1
config-server/src/main/resources/shared/triage-service-test.yml

@@ -91,4 +91,6 @@ mybatis-plus:
   configuration:
     map-underscore-to-camel-case: true
     cache-enabled: false
-
+ai:
+  server:
+    address: http://192.168.2.234:8080

+ 1 - 1
triage-service/src/main/java/com/diagbot/client/AIServiceClient.java

@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
  * @author: gaodm
  * @time: 2018/10/25 9:56
  */
-@FeignClient(name = "AI", url = "http://192.168.2.234:8080", fallback = AIServiceHystrix.class)
+@FeignClient(name = "AI", url = "${ai.server.address}", fallback = AIServiceHystrix.class)
 public interface AIServiceClient {
 
     @PostMapping(value = "/web/doc/algorithm/neural")