application.yml 783 Bytes
Newer Older
葛齐林's avatar
葛齐林 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
spring:
  application:
    name: microservice-config-server
  profiles:
    active: native
  cloud:
    config:
      server:
        native:
          search-locations: classpath:/
server:
  port: 8777
eureka:
  client:
    fetch-registry: true
    registry-fetch-interval-seconds: 8
    healthcheck:
      enabled: true
    serviceUrl:
co_dengxiongwen's avatar
co_dengxiongwen committed
20 21
      defaultZone: http://user:password123@eureka:8762/eureka
#      defaultZone: http://user:password123@eureka:8761/eureka
葛齐林's avatar
葛齐林 committed
22 23 24 25 26 27
#      defaultZone: http://user:password123@172.19.0.1:8761/eureka
  instance:
    lease-renewal-interval-in-seconds: 4
    lease-expiration-duration-in-seconds: 12
    prefer-ip-address: true
    instance-id: ${spring.cloud.client.ip-address}:${spring.application.instance_id:${server.port}}