修改 eureka 实例地址

This commit is contained in:
ajaxfan
2021-02-23 18:10:22 +08:00
parent 8ee5d70b28
commit 18460a80a5
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ build/
### VS Code ###
.vscode/
/bin/

View File

@ -100,9 +100,9 @@ eureka:
defaultZone: http://10.242.31.158:5001/eureka,http://10.242.31.158:5002/eureka,http://10.242.31.158:5003/eureka
instance:
prefer-ip-address: true
hostname: http://10.242.31.158
# instance-ip: ${spring.cloud.client.ip-address}:${server.port}
instance-ip: http://10.242.31.158:${server.port}
instance-id: http://10.242.31.158:${server.port}
# 这是客户端的注册地址, eureka 会通过这个地址建立管道
ip-address: 10.242.31.158
mybatis-plus:
configuration: