bootstrap配置
This commit is contained in:
@@ -18,15 +18,16 @@ spring:
|
|||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
discovery:
|
discovery:
|
||||||
# 强制使用指定IP,不进行自动探测
|
|
||||||
register-enabled: true
|
|
||||||
watch: false
|
|
||||||
server-addr: ${nacos.host}
|
server-addr: ${nacos.host}
|
||||||
namespace: ${nacos.namespace}
|
namespace: ${nacos.namespace}
|
||||||
username: ${nacos.username}
|
username: ${nacos.username}
|
||||||
password: ${nacos.password}
|
password: ${nacos.password}
|
||||||
|
# 强制注册你指定的IP(必须保留)
|
||||||
ip: 18.167.251.121
|
ip: 18.167.251.121
|
||||||
port: 10093
|
port: 10093
|
||||||
|
# ✅ 强制禁用网卡自动探测(关键!)
|
||||||
|
prefer-ip-address: true
|
||||||
|
ip-type: ipv4
|
||||||
config:
|
config:
|
||||||
server-addr: ${nacos.host}
|
server-addr: ${nacos.host}
|
||||||
namespace: ${nacos.namespace}
|
namespace: ${nacos.namespace}
|
||||||
|
|||||||
Reference in New Issue
Block a user