|
|
@@ -7,9 +7,9 @@ eureka:
|
|
|
instance:
|
|
|
preferIpAddress: true
|
|
|
#这样写eureka服务注册中心会显示本机ip+端口号
|
|
|
- #instanceId: ${spring.cloud.client.ipAddress}:${server.port}
|
|
|
+ instanceId: ${spring.cloud.client.ipAddress}:${server.port}
|
|
|
#这样写eureka服务注册中心会显示项目名和端口号
|
|
|
- instanceId: ${spring.application.name}:${server.port}
|
|
|
+ #instanceId: ${spring.application.name}:${server.port}
|
|
|
client:
|
|
|
serviceUrl:
|
|
|
defaultZone: http://192.168.1.135:1111/eureka/
|