From 18460a80a5743aaa98b826fc2e34b4222d0abcd5 Mon Sep 17 00:00:00 2001 From: ajaxfan <909938737@qq.com> Date: Tue, 23 Feb 2021 18:10:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20eureka=20=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/main/resources/application-dev.yml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 549e00a..e4c2a19 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ build/ ### VS Code ### .vscode/ +/bin/ diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 759168a..43e5fee 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -100,9 +100,9 @@ eureka: defaultZone: http://10.242.31.158:5001/eureka,http://10.242.31.158:5002/eureka,http://10.242.31.158:5003/eureka instance: prefer-ip-address: true - hostname: http://10.242.31.158 - # instance-ip: ${spring.cloud.client.ip-address}:${server.port} - instance-ip: http://10.242.31.158:${server.port} + instance-id: http://10.242.31.158:${server.port} + # 这是客户端的注册地址, eureka 会通过这个地址建立管道 + ip-address: 10.242.31.158 mybatis-plus: configuration: