|
|
@@ -1,54 +1,42 @@
|
|
1
|
1
|
server:
|
|
2
|
2
|
port: 9022
|
|
3
|
|
- maxHttpHeaderSize: 102400
|
|
4
|
3
|
tomcat:
|
|
5
|
4
|
uri-encoding: utf-8
|
|
6
|
|
-
|
|
7
|
5
|
# 注册中心配置
|
|
8
|
6
|
eureka:
|
|
9
|
7
|
client:
|
|
10
|
8
|
service-url:
|
|
11
|
|
- defaultZone: http://172.16.0.46:9511/eureka/
|
|
|
9
|
+ defaultZone: http://172.16.0.8:9001/eureka/,http://172.16.0.9:9001/eureka/
|
|
12
|
10
|
instance:
|
|
13
|
11
|
prefer-ip-address: true
|
|
14
|
12
|
# 每隔10s发送一次心跳(默认30s)
|
|
15
|
13
|
lease-renewal-interval-in-seconds: 10
|
|
16
|
14
|
# 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
|
|
17
|
15
|
lease-expiration-duration-in-seconds: 30
|
|
18
|
|
-
|
|
19
|
16
|
spring:
|
|
20
|
17
|
application:
|
|
21
|
18
|
name: depot-basic
|
|
22
|
19
|
|
|
23
|
20
|
# 数据库配置
|
|
24
|
21
|
datasource:
|
|
25
|
|
- driverClassName: com.mysql.jdbc.Driver
|
|
26
|
|
- url: jdbc:mysql://172.16.0.5:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
|
|
|
22
|
+ driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
23
|
+ url: jdbc:mysql://101.36.160.140:10311/depot_yunnan?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
|
|
27
|
24
|
username: root
|
|
28
|
25
|
password: 123456
|
|
29
|
|
- #验证连接是否有效。此参数必须设置为非空字符串,下面三项设置成true才能生效
|
|
30
|
|
- validation-query: SELECT 1
|
|
31
|
|
- #指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除.
|
|
32
|
|
- test-while-idle: true
|
|
33
|
|
- #指明是否在从池中取出连接前进行检验,如果检验失败,则从池中去除连接并尝试取出另一个
|
|
34
|
|
- test-on-borrow: false
|
|
35
|
|
- #指明是否在归还到池中前进行检验
|
|
36
|
|
- test-on-return: true
|
|
37
|
|
- time-between-eviction-runs-millis: 18800
|
|
38
|
26
|
# 缓存配置
|
|
39
|
27
|
session:
|
|
40
|
28
|
store-type: redis
|
|
41
|
29
|
|
|
42
|
30
|
redis:
|
|
43
|
|
- database: 1
|
|
44
|
|
- host: 172.16.0.46
|
|
45
|
|
- port: 6679
|
|
|
31
|
+ database: 13
|
|
|
32
|
+ host: 172.16.0.2
|
|
|
33
|
+ port: 6379
|
|
46
|
34
|
password: 123456
|
|
47
|
|
- timeout: 3000
|
|
|
35
|
+ timeout: 3000ms
|
|
48
|
36
|
jedis:
|
|
49
|
37
|
pool:
|
|
50
|
38
|
max-active: 8
|
|
51
|
|
- max-wait: -1
|
|
|
39
|
+ max-wait: -1ms
|
|
52
|
40
|
max-idle: 8
|
|
53
|
41
|
min-idle: 0
|
|
54
|
42
|
# 静态资源配置
|