You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
745 B

server:
port: 8184
eureka:
server:
enable-self-preservation: false # 设为false,关闭自我保护,会清理无效节点
eviction-interval-timer-in-ms: 10000 # 清理无效节点间隔时间(单位毫秒,默认是60*1000)
renewal-percent-threshold: 0.49
instance:
hostname: localhost
prefer-ip-address: true
instance-id: ${spring.cloud.client.ip-address}:${server.port} #ip:port
client:
register-with-eureka: false
fetch-registry: false
serviceUrl:
defaultZone: http://localhost:${server.port}/eureka/
spring:
application:
name: deviceEureka
logging:
level:
root: info
com.xr: debug
org:
springframework:
boot:
autoconfigure: error