diff --git a/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/main/resources/application.properties b/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/main/resources/application.properties index eb07b401..d5c19eca 100644 --- a/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/main/resources/application.properties +++ b/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/main/resources/application.properties @@ -1,7 +1,7 @@ server.port=8888 spring.application.name=etcd -spring.dynamic.thread-pool.etcd.endpoints = http://192.168.0.154:2379 +spring.dynamic.thread-pool.etcd.endpoints = http://127.0.0.1:2379 spring.dynamic.thread-pool.etcd.key = /thread spring.dynamic.thread-pool.executors[0].thread-pool-id=message-consume spring.dynamic.thread-pool.executors[0].core-pool-size=3 diff --git a/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/test/java/Test.java b/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/test/java/Test.java index 6dacd346..456642b3 100644 --- a/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/test/java/Test.java +++ b/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/test/java/Test.java @@ -14,7 +14,7 @@ public class Test { public static void main(String[] args) throws Exception{ - Client client = Client.builder().endpoints("http://192.168.0.154:2379").build(); + Client client = Client.builder().endpoints("http://127.0.0.1:2379").build(); GetResponse getResponse = client.getKVClient().get(ByteSequence.from("/thread", StandardCharsets.UTF_8)).get(); System.out.println("hahah"); }