springcloudconfig配置文件

server.port: 9903

spring:
  application.name: read-service 
  cloud.config:
    discovery:
      enabled: true
      serviceId: config-server
# 重试机制  开启
    fail-fast: true
    # 重试机制  
    retry:
      initialInterval: 2000  # 重试间隔
      maxAttempts: 30   # 最大重试次数
  mvc.servlet.load-on-startup: 1
eureka:
  client:
    serviceUrl:
      defaultZone: ${EUREKA_URI:http://localhost:9001/eureka}
    registryFetchIntervalSeconds: 1
  instance:
    leaseRenewalIntervalInSeconds: 1
    #preferIpAddress: true
上一篇:Eureka服务注册与发现


下一篇:eureka server集群信息同步