eureka: client: fetch-registry: true register-with-eureka: true service-url: # defaultZone: http://localhost:8761/eureka/ defaultZone: http://localhost:8761/eureka/,http://localhost:8762/eureka/ instance: hostname: localhost lease-expiration-duration-in-seconds: 90 lease-renewal-interval-in-seconds: 10 prefer-ip-address: true spring: cloud: gateway: routes: - id: usersearch uri: lb://usersearch predicates: - Path=/usersearch/** filters: - StripPrefix=1 - id: SmartCampusWebApi uri: http://120.26.116.253:9022 # uri: lb://SmartCampusWebApi predicates: - Path=/SmartCampusWebApi/** filters: - StripPrefix=1 - id: file-center uri: lb://file-center # uri: http://121.40.30.78:5000 predicates: - Path=/file-center/** filters: - StripPrefix=1 # discovery: # locator: # lowerCaseServiceId: true # enabled: true #设置最大超时时间 ribbon: httpclient: enabled: false okhttp: enabled: true ReadTimeout: 90000 ConnectTimeout: 90000 OkToRetryOnAllOperations: true MaxAutoRetries: 1 MaxAutoRetriesNextServer: 1