|
|
@@ -1,20 +1,39 @@
|
|
|
1
|
+spring:
|
|
|
2
|
+ profiles:
|
|
|
3
|
+ active: agentLv
|
|
|
4
|
+---
|
|
1
|
5
|
server:
|
|
2
|
6
|
port: 9017
|
|
3
|
7
|
tomcat:
|
|
4
|
8
|
uri-encoding: utf-8
|
|
5
|
9
|
|
|
|
10
|
+# 注册中心配置
|
|
|
11
|
+eureka:
|
|
|
12
|
+ client:
|
|
|
13
|
+ service-url:
|
|
|
14
|
+ defaultZone: http://eureka-depot-tj:9001/eureka/
|
|
|
15
|
+ instance:
|
|
|
16
|
+ prefer-ip-address: true
|
|
|
17
|
+ # 每隔10s发送一次心跳(默认30s)
|
|
|
18
|
+ lease-renewal-interval-in-seconds: 10
|
|
|
19
|
+ # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
|
|
|
20
|
+ lease-expiration-duration-in-seconds: 30
|
|
|
21
|
+
|
|
6
|
22
|
spring:
|
|
|
23
|
+ profiles: agentLv
|
|
|
24
|
+ application:
|
|
|
25
|
+ name: depot-monitor
|
|
7
|
26
|
# 数据库配置
|
|
8
|
27
|
datasource:
|
|
9
|
28
|
driver-class-name: com.mysql.jdbc.Driver
|
|
10
|
|
- url: jdbc:mysql://192.168.123.98:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
|
29
|
+ url: jdbc:mysql://192.168.123.38:3306/depot_tianjin?useUnicode=true&characterEncoding=utf-8
|
|
11
|
30
|
username: root
|
|
12
|
31
|
password: 123456
|
|
13
|
32
|
# 缓存配置
|
|
14
|
33
|
session:
|
|
15
|
34
|
store-type: redis
|
|
16
|
35
|
redis:
|
|
17
|
|
- database: 0
|
|
|
36
|
+ database: 2
|
|
18
|
37
|
host: 192.168.123.98
|
|
19
|
38
|
port: 6666
|
|
20
|
39
|
password: depotredis
|
|
|
@@ -44,4 +63,70 @@ monitor:
|
|
44
|
63
|
# 短信猫配置
|
|
45
|
64
|
sendMessage:
|
|
46
|
65
|
com: COM4
|
|
47
|
|
- modem: modem.com4
|
|
|
66
|
+ modem: modem.com4
|
|
|
67
|
+
|
|
|
68
|
+---
|
|
|
69
|
+server:
|
|
|
70
|
+ port: 9017
|
|
|
71
|
+ tomcat:
|
|
|
72
|
+ uri-encoding: utf-8
|
|
|
73
|
+
|
|
|
74
|
+# 注册中心配置
|
|
|
75
|
+eureka:
|
|
|
76
|
+ client:
|
|
|
77
|
+ service-url:
|
|
|
78
|
+ defaultZone: http://192.168.123.98:9001/eureka/
|
|
|
79
|
+ instance:
|
|
|
80
|
+ prefer-ip-address: true
|
|
|
81
|
+ # 每隔10s发送一次心跳(默认30s)
|
|
|
82
|
+ lease-renewal-interval-in-seconds: 10
|
|
|
83
|
+ # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
|
|
|
84
|
+ lease-expiration-duration-in-seconds: 30
|
|
|
85
|
+
|
|
|
86
|
+spring:
|
|
|
87
|
+ profiles: dev
|
|
|
88
|
+ application:
|
|
|
89
|
+ name: depot-monitor-lv
|
|
|
90
|
+ # 数据库配置
|
|
|
91
|
+ datasource:
|
|
|
92
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
93
|
+ url: jdbc:mysql://192.168.123.38:3306/depot_tianjin?useUnicode=true&characterEncoding=utf-8
|
|
|
94
|
+ username: root
|
|
|
95
|
+ password: 123456
|
|
|
96
|
+ # 缓存配置
|
|
|
97
|
+ session:
|
|
|
98
|
+ store-type: redis
|
|
|
99
|
+ redis:
|
|
|
100
|
+ database: 2
|
|
|
101
|
+ host: 192.168.123.98
|
|
|
102
|
+ port: 6666
|
|
|
103
|
+ password: depotredis
|
|
|
104
|
+ timeout: 3000
|
|
|
105
|
+ jedis:
|
|
|
106
|
+ pool:
|
|
|
107
|
+ max-active: 8
|
|
|
108
|
+ max-wait: -1
|
|
|
109
|
+ max-idle: 8
|
|
|
110
|
+ min-idle: 0
|
|
|
111
|
+ # 静态资源配置
|
|
|
112
|
+ resources:
|
|
|
113
|
+ static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|
|
|
114
|
+ servlet:
|
|
|
115
|
+ multipart:
|
|
|
116
|
+ enabled: true
|
|
|
117
|
+ max-file-size: 10MB
|
|
|
118
|
+ max-request-size: 50MB
|
|
|
119
|
+
|
|
|
120
|
+web:
|
|
|
121
|
+ upload-path: D:/depotImg
|
|
|
122
|
+
|
|
|
123
|
+ # 视频监测记录保存位置
|
|
|
124
|
+monitor:
|
|
|
125
|
+ monitoring-path: /home/monitorzd
|
|
|
126
|
+
|
|
|
127
|
+ # 短信猫配置
|
|
|
128
|
+sendMessage:
|
|
|
129
|
+ com: COM4
|
|
|
130
|
+ modem: modem.com4
|
|
|
131
|
+
|
|
|
132
|
+logging.level.com.chinaitop.depot.agent.crk.mapper: debug
|