0
我經歷this教程,我不熟悉配置的以下部分:defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
Spring屬性佔位符默認值如何工作?
eureka:
instance:
leaseRenewalIntervalInSeconds: 10
client:
registryFetchIntervalSeconds: 5
serviceUrl:
defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
爲什麼我們的${EUREKA_SERVICE_URL:http://localhost:8761}
而不是僅僅http://localhost:8761/eureka/