Commit 8cea37bd by 袁伟铭

修改注册实例ID

parent 628473b3
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
......
...@@ -18,7 +18,7 @@ spring: ...@@ -18,7 +18,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
......
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
# defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ # defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
......
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
......
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
# defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ # defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
......
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
...@@ -12,7 +12,7 @@ spring: ...@@ -12,7 +12,7 @@ spring:
eureka: eureka:
instance: instance:
prefer-ip-address: true prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port}
client: client:
service-url: service-url:
defaultZone: http://admin:123456@127.0.0.1:8800/eureka/ defaultZone: http://admin:123456@127.0.0.1:8800/eureka/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment