application.yml 739 字节
Newer Older
M
ManongJu 已提交
1 2 3
spring:
  application:
    name: Gateway
M
ManongJu 已提交
4 5
  zipkin:
    base-url: http://10.10.8.2:9050
M
ManongJu 已提交
6
server:
M
ManongJu 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  port: 9030
eureka:
  instance:
    prefer-ip-address: true #使用IP注册
    instance-id: ${spring.cloud.client.ipAddress}:${server.port}
    lease-renewal-interval-in-seconds: 5 ##为了能够快速删除
    lease-expiration-duration-in-seconds: 10 ##为了能够快速删除
  client:
      service-url:
        defaultZone: http://register1:9010/eureka/,http://register2:9011/eureka/
###actuator监控点 start####
endpoints:
  health:
    sensitive: false
    enabled: true
##默认情况下很多端点是不允许访问的,会返回401:Unauthorized
management:
  security:
    enabled: false
M
ManongJu 已提交
26
###actuator监控点 end####
M
ManongJu 已提交
27 28

##ZipKin