bootstrap配置

This commit is contained in:
litianxiang
2026-04-28 15:53:56 +08:00
parent 6f4e71b9e9
commit 5ceda7991d

View File

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