我可以添加注册表到网关jhipster应用程序?
问题描述:
我可以将注册表支持添加到在没有注册表的情况下创建的网关应用程序吗? 我有一个网关应用程序,当我创建这个应用程序时,我不选择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}
答
编辑您的.yo-rc.json
文件,并更改线路"serviceDiscoveryType": false,
到"serviceDiscoveryType": "eureka",
然后用jhipster app --with-entities
重新生成您的应用程序和使用git合并,你可能已经完成了自定义。
好吧,今天我试试这个。 –
tnks,这项工作!!!!! –