moreco-cloud-register.0.0.1.source-code.bootstrap.yml Maven / Gradle / Ivy
The newest version!
spring:
application:
name: moreco-storage-registry
server:
port: 8761
eureka:
client:
fetch-registry: false
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
instance:
hostname: localhost
prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.storage.client.ip-address}:${server.port}
server:
# 关闭自我保护模式(生产环境不建议关闭)
enable-self-preservation: true
# 清理无效节点间隔 单位毫秒
eviction-interval-timer-in-ms: 60000