Parcourir la source

change esfeign

txf il y a 3 ans
Parent
commit
a6887e51ca

+ 2 - 2
src/main/java/com/steerinfo/dil/feign/ESFeign.java

@@ -17,7 +17,7 @@ import java.util.Map;
 
 @FeignClient(value = "DIL-ES-DEV",url = "172.16.33.161:8089/api/v1/es")
 public interface ESFeign {
-    @PostMapping("api/v1/es/getConResult")
+    @PostMapping("getConResult")
     PageListAdd getConResult(@RequestBody(required = false) Map<String, Object> mapValue,
                              @RequestParam String index,
                              @RequestParam Integer apiId,
@@ -25,6 +25,6 @@ public interface ESFeign {
                              @RequestParam Integer pageSize,
                              @RequestParam String con);
 
-    @PostMapping( value = "api/v1/es/insertIndex",consumes = "application/json", produces = "application/json")
+    @PostMapping( value = "insertIndex",consumes = "application/json", produces = "application/json")
     void insertIndex(@RequestBody List<Map<String, Object>> detailListTotal);
 }

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

@@ -22,7 +22,7 @@ openfeign:
 eureka:
   client:
     service-url:
-      defaultZone: http://root:root@${EUREKA_HOST:localhost}:${EUREKA_PORT:8061}/eureka/
+      defaultZone: http://root:root@${EUREKA_HOST:172.16.33.161}:${EUREKA_PORT:8061}/eureka/
   instance:
     prefer-ip-address: true
     status-page-url: http://${spring.cloud.client.ip-address}:${server.port}/swagger-ui.html#/