0
我可以將註冊表支持添加到在沒有註冊表的情況下創建的網關應用程序嗎? 我有一個網關應用程序,當我創建這個應用程序時,我不選擇jhipster註冊表。 它是可行的嗎?或者我需要逐行添加eureka配置?我可以添加註冊表到網關jhipster應用程序?
eureka:
client:
enabled: true
healthcheck:
enabled: true
fetch-registry: true
register-with-eureka: true
instance-info-replication-interval-seconds: 10
registry-fetch-interval-seconds: 10
instance:
appname: cadgateway
instanceId: cadgateway:${spring.application.instance-id:${random.value}}
lease-renewal-interval-in-seconds: 5
lease-expiration-duration-in-seconds: 10
status-page-url-path: ${management.context-path}/info
health-check-url-path: ${management.context-path}/health
metadata-map:
zone: primary # This is needed for the load balancer
profile: ${spring.profiles.active}
version: ${info.project.version}
好吧,今天我試試這個。 –
tnks,這項工作!!!!! –