2017-09-15 75 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,这项工作!!!!! –

相关问题