我在一个单独的VM上运行Jhipster注册表,API连接有问题。在Jhipster注册中心被移到另一个VM之前,一切都在工作。
以下是配置文件的相关部分:
application-prod.yml
instance:
prefer-ip-address: true
client:
service-url:
defaultZone: http://admin:${jhipster.registry.password}@10.202.25.166:8761/eureka/bootstrap-prod.yml
cloud:
config:
fail-fast: true
retry:
initial-interval: 1000
max-interval: 2000
max-attempts: 100
uri: http://admin:${jhipster.registry.password}@10.202.25.166:8761/config
name: app
profile: prod
label: master我希望我设置的URI值不正确,但在配置中查找使用IP与"localhost“的示例/说明时遇到了困难。当API在VM上启动时,最后一个输出是"No URLs will be polled as dynamic configuration sources."。
发布于 2019-07-12 13:56:24
我将I added eureka.instance.ip-address: 10.202.25.166添加到应用程序-prod.yml中,现在它正在工作
https://stackoverflow.com/questions/57007224
复制相似问题