From 5ceda7991db01b8776d2e7653beaadb17f7aee19 Mon Sep 17 00:00:00 2001 From: litianxiang Date: Tue, 28 Apr 2026 15:53:56 +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 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml index b12f8fe..7f3cf06 100644 --- a/src/main/resources/bootstrap.yml +++ b/src/main/resources/bootstrap.yml @@ -22,12 +22,9 @@ spring: namespace: ${nacos.namespace} username: ${nacos.username} password: ${nacos.password} - # 强制注册你指定的IP(必须保留) - ip: 18.167.251.121 - port: 10093 - # ✅ 强制禁用网卡自动探测(关键!) - prefer-ip-address: true - ip-type: ipv4 + instance-protocol: http + instance-ip: 18.167.251.121 + instance-port: 10093 config: server-addr: ${nacos.host} namespace: ${nacos.namespace}