|
@@ -16,7 +16,7 @@ eureka:
|
|
|
|
|
|
instance:
|
|
|
prefer-ip-address: true #配置是否显示ip地址,默认为false
|
|
|
- instance-id: ${spring.cloud.client.ip-address}:${server.port} #注册服务列表显示ip+端口
|
|
|
+ instance-id: 124.71.171.71:${server.port} #注册服务列表显示ip+端口
|
|
|
client:
|
|
|
serviceUrl:
|
|
|
defaultZone: http://${server}:${port}/eureka
|