2017-09-15 74 views
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} 

回答

2

編輯您的.yo-rc.json文件,並更改線路"serviceDiscoveryType": false,"serviceDiscoveryType": "eureka",然後用jhipster app --with-entities重新生成您的應用程序和使用git合併,你可能已經完成了自定義。

+0

好吧,今天我試試這個。 –

+0

tnks,這項工作!!!!! –

相關問題