#端口 server: port: 5000 #固定端口 # port: ${randomServerPort.value[5000,5005]} #随机端口 #服务名称 spring: application: name: file-center servlet: multipart: max-request-size: 400MB max-file-size: 400MB #management: # endpoints: # web: # exposure: # include: "*" # endpoint: # health: # show-details: always #eureka client配置 #eureka: # client: # serviceUrl: # # defaultZone: http://localhost:8761/eureka/,http://localhost:8762/eureka/ # defaultZone: http://121.40.109.21:8761/eureka/,http://121.40.109.21:8762/eureka/ # #http://134.224.249.33:1111/eureka/ 正式库 # #http://134.224.249.33:1111/eureka/ 测试库 # #http://127.0.0.1:8761/eureka,http://127.0.0.1:8762/eureka # registry-fetch-interval-seconds: 5 # instance-info-replication-interval-seconds: 10 # instance: # # prefer-ip-address: false # instance-id: ${spring.application.name} # # instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${spring.application.instance_id:${server.port}} #固定端口 # # instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${spring.application.instance_id:${randomServerPort.value[5000,5005]}} #随机端口 # lease-renewal-interval-in-seconds: 10 #每隔几秒告诉eureka服务器我还存活,用于心跳检测 # lease-expiration-duration-in-seconds: 10 #如果心跳检测一直没有发送,10秒后会从eureka服务器中将此服务剔除 # # status-page-url: http://${spring.cloud.client.ip-address}:${server.port}/doc.html # ${server.port}为该服务的端口号 # hostname: 121.40.30.78 ## status-page-url: http://${spring.cloud.client.ip-address}:${randomServerPort.value[5000,5005]}/document.html # ${server.port}为该服务的端口号