application.yml 702 Bytes
Newer Older
houg's avatar
houg committed
1 2 3
spring:
  application:
    name: eureka-server
houg's avatar
houg committed
4 5
  profiles:
     active: apollo-env.properties  
houg's avatar
houg committed
6 7 8 9
server:
  port: 8761
  servlet:
    context-path: /register
houg's avatar
houg committed
10 11
app:
  id: evonate-newretail-eureka
houg's avatar
houg committed
12 13 14 15

#表示是否将自己注册到Eureka Server上,默认为true
eureka:
  client:
houg's avatar
houg committed
16
    register-with-eureka: false
houg's avatar
houg committed
17
    #表示是否从Eureka Server上获取注册信息,默认为true
houg's avatar
houg committed
18
    fetch-registry: false
houg's avatar
houg committed
19
    serviceUrl: 
houg's avatar
houg committed
20 21 22 23 24 25 26 27 28 29
      defaultZone: http://localhost:${server.port}/register/eureka/
  instance:
    hostname: localhost
  server:
    # 关闭自我保护机制
    enable-self-preservation: false
    # 每隔10s扫描服务列表,移除失效服务
    eviction-interval-timer-in-ms: 10000