application.yml
1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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