server 注册中心
client 80端口
配置:
server:
port: 80
spring:
http:
multipart:
enabled: true
max-file-size: 100MB
max-request-size: 100MB
application:
name: cloudClient-80
# mvc:
# static-path-pattern: /static/libs/**
# resources:
# static-locations: classpath:/WEB-INF/classes/static/
eureka:
instance:
#注册服务的时候使用服务的ip地址
prefer-ip-address: true
#心跳设置,告诉服务器该实例仍在使用
lease-renewal-interval-in-seconds: 5
#告诉服务器如果10秒内未发送任何续约请求,则关闭该客户端
lease-expiration-duration-in-seconds: 10
client:
healthcheck:
enabled: true
serviceUrl:
defaultZone: http://127.0.0.1:8888/eureka/
# 抓取服务列表
registry-fetch-interval-seconds: 30
zuul:
sensitive-headers: "*"
max:
host: