From d8e814c786a060387720f0e13d9494b13bfae0b4 Mon Sep 17 00:00:00 2001 From: GongNanyue <1435248348@qq.com> Date: Fri, 1 Aug 2025 11:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=BF=90=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E6=B3=A8=E5=86=8C=E4=B8=AD=E5=BF=83=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E9=97=AE=E9=A2=98=202379=E6=98=AFetcd=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E9=80=9A=E4=BF=A1=E7=AB=AF=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?2380=E6=98=AF=E9=9B=86=E7=BE=A4=E5=86=85=E9=83=A8=E9=80=9A?= =?UTF-8?q?=E4=BF=A1=E7=AB=AF=E5=8F=A3=20=E6=8A=A5=E9=94=99=E7=B1=BB?= =?UTF-8?q?=E4=BC=BC=E4=BA=8E=E5=A6=82=E4=B8=8B:=2022:57:47.264=20[vert.x-?= =?UTF-8?q?eventloop-thread-0]=20DEBUG=20io.netty.handler.codec.http2.Http?= =?UTF-8?q?2ConnectionHandler=20--=20[id:=200x243e5d9f,=20L:/127.0.0.1:652?= =?UTF-8?q?34=20-=20R:localhost/127.0.0.1:2380]=20Sent=20GOAWAY:=20lastStr?= =?UTF-8?q?eamId=20'2147483647',=20errorCode=20'1',=20debugData=20'First?= =?UTF-8?q?=20received=20frame=20was=20not=20SETTINGS.=20Hex=20dump=20for?= =?UTF-8?q?=20first=205=20bytes:=20485454502f'.=20Forcing=20shutdown=20of?= =?UTF-8?q?=20the=20connection.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .../src/main/java/com/yupi/yurpc/config/RegistryConfig.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 133cbd2..132ce5f 100644 --- a/.gitignore +++ b/.gitignore @@ -104,3 +104,4 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser +.DS_Store \ No newline at end of file diff --git a/yu-rpc-core/src/main/java/com/yupi/yurpc/config/RegistryConfig.java b/yu-rpc-core/src/main/java/com/yupi/yurpc/config/RegistryConfig.java index 66c42c8..6767499 100644 --- a/yu-rpc-core/src/main/java/com/yupi/yurpc/config/RegistryConfig.java +++ b/yu-rpc-core/src/main/java/com/yupi/yurpc/config/RegistryConfig.java @@ -20,8 +20,9 @@ public class RegistryConfig { /** * 注册中心地址 + * 注意:2379是etcd客户端通信端口,2380是集群内部通信端口 */ - private String address = "http://localhost:2380"; + private String address = "http://localhost:2379"; /** * 用户名