bootstrap配置

This commit is contained in:
litianxiang
2026-04-28 15:46:47 +08:00
parent 38c12b9ba5
commit 6f4e71b9e9

View File

@@ -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}