springcloud使用之本地调试配置

2022-07-08 11:16:40

在配置中添加

注册中心配置
eureka:
  instance:
    prefer-ip-address: true
    lease-expiration-duration-in-seconds: 15
    lease-renewal-interval-in-seconds: 5
    instance-id: ${spring.application.name}:${random.int}
  client:
    service-url:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
      registry-fetch-interval-seconds: 5
    ***registerWithEureka: false
      #fetchRegistry: false***
  • 作者:hap0728
  • 原文链接:https://blog.csdn.net/qq_42643690/article/details/103476081
    更新时间:2022-07-08 11:16:40