|
@@ -8,6 +8,9 @@ spring:
|
|
|
|
|
|
# 指定服务注册中心的地址
|
|
# 指定服务注册中心的地址
|
|
eureka:
|
|
eureka:
|
|
|
|
+ instance:
|
|
|
|
+ prefer-ip-address: true # 是否使用 ip 地址注册
|
|
|
|
+ instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
|
|
client:
|
|
client:
|
|
- serviceUrl:
|
|
|
|
- defaultZone: http://localhost:18000/eureka
|
|
|
|
|
|
+ service-url: # 设置服务注册中心地址
|
|
|
|
+ defaultZone: http://localhost:18000/eureka/
|