diff --git a/app1/src/main/resources/config/application.yml b/app1/src/main/resources/config/application.yml index 6cc89d2..ea8323a 100644 --- a/app1/src/main/resources/config/application.yml +++ b/app1/src/main/resources/config/application.yml @@ -14,8 +14,7 @@ eureka: instance: appname: app1 - #metadataMap: - # instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}} + instanceId: app1:${spring.application.instance_id:${random.value}} client: enabled: true healthcheck: diff --git a/jhigateway/src/main/resources/config/application.yml b/jhigateway/src/main/resources/config/application.yml index f888a88..8d82d5b 100644 --- a/jhigateway/src/main/resources/config/application.yml +++ b/jhigateway/src/main/resources/config/application.yml @@ -14,6 +14,7 @@ eureka: instance: appname: gateway + instanceId: gateway:${spring.application.instance_id:${random.value}} client: enabled: true healthcheck: