2017-09-15 17 views
0

レジストリなしで作成されたゲートウェイアプリケーションにレジストリサポートを追加できますか? 私はこのアプリケーションを作成したときにゲートウェイアプリケーションを持っていますが、私はjhipsterレジストリを選択しません。 それは可能ですか?あるいは、私はラインごとにユーレカ設定を追加する必要がありますか?ゲートウェイ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": "eureka",にライン"serviceDiscoveryType": false,を変更jhipster app --with-entitiesと、その後再生成あなたのアプリとのgitであなたが行っている可能性があるカスタマイズをマージします。

+0

ok、今日私はこれを試しています。 –

+0

tnks、この作品!!!!! –

関連する問題