I am going through this tutorial and I am not conversant with the following part of the configuration: defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
Why do we have ${EUREKA_SERVICE_URL:http://localhost:8761}
instead of just http://localhost:8761/eureka/
It seems the author wants to use EUREKA_SERVICE_URL as preferred value. If this is not set, the hardcoded url will be used.
Just remove it if you do not need that.
Maybe you can get more information about property default values here.