我正在阅读this教程,我不熟悉配置的以下部分:ecritures
defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
为什么我们eureka:
instance:
leaseRenewalIntervalInSeconds: 10
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
而非${EUREKA_SERVICE_URL:http://localhost:8761}
答案 0 :(得分:1)