From 6f4e71b9e949abbdb34bdf112d0648d907b713be Mon Sep 17 00:00:00 2001 From: litianxiang Date: Tue, 28 Apr 2026 15:46:47 +0800 Subject: [PATCH] =?UTF-8?q?bootstrap=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/bootstrap.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml index f1b623d..b12f8fe 100644 --- a/src/main/resources/bootstrap.yml +++ b/src/main/resources/bootstrap.yml @@ -18,15 +18,16 @@ spring: cloud: nacos: discovery: - # 强制使用指定IP,不进行自动探测 - register-enabled: true - watch: false server-addr: ${nacos.host} namespace: ${nacos.namespace} username: ${nacos.username} password: ${nacos.password} + # 强制注册你指定的IP(必须保留) ip: 18.167.251.121 port: 10093 + # ✅ 强制禁用网卡自动探测(关键!) + prefer-ip-address: true + ip-type: ipv4 config: server-addr: ${nacos.host} namespace: ${nacos.namespace}