|
|
@@ -1,76 +1,39 @@
|
|
1
|
1
|
spring:
|
|
2
|
2
|
profiles:
|
|
3
|
3
|
active: clouda
|
|
4
|
|
----
|
|
5
|
|
-# 云南项目配置
|
|
6
|
4
|
server:
|
|
7
|
5
|
port: 9028
|
|
8
|
6
|
tomcat:
|
|
9
|
7
|
uri-encoding: utf-8
|
|
10
|
|
- max-http-header-size: 102400
|
|
11
|
|
-
|
|
12
|
|
-# 注册中心配置 defaultZone: http://eureka-depot-yn:9001/eureka/
|
|
|
8
|
+---
|
|
|
9
|
+# 注册中心配置 defaultZone: http://eureka-depot:9001/eureka/
|
|
13
|
10
|
eureka:
|
|
14
|
11
|
client:
|
|
15
|
12
|
service-url:
|
|
16
|
|
- defaultZone: http://172.16.0.46:9511/eureka/
|
|
|
13
|
+ defaultZone: http://eureka-depot:9001/eureka/
|
|
|
14
|
+ registerWithEureka: false
|
|
|
15
|
+ fetchRegistry: false
|
|
17
|
16
|
instance:
|
|
18
|
17
|
prefer-ip-address: true
|
|
19
|
|
- # 每隔10s发送一次心跳(默认30s)
|
|
20
|
|
- lease-renewal-interval-in-seconds: 10
|
|
21
|
|
- # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
|
|
22
|
|
- lease-expiration-duration-in-seconds: 30
|
|
23
|
|
-
|
|
24
|
|
-
|
|
25
|
|
-#spring:
|
|
26
|
|
-# profiles: cloud
|
|
27
|
|
-# application:
|
|
28
|
|
-# name: depot-intelligent
|
|
29
|
|
-# #配置中心配置
|
|
30
|
|
-# cloud:
|
|
31
|
|
-# config:
|
|
32
|
|
-# #使用discovery 时需要将eureka 写到该文件中,开发环境使用该方式,推荐使用。
|
|
33
|
|
-# discovery:
|
|
34
|
|
-# enabled: true
|
|
35
|
|
-# service-id: depot-config-server
|
|
36
|
|
-# profile: dev
|
|
37
|
|
-# label: master
|
|
38
|
|
-# jackson:
|
|
39
|
|
-# date-format: yyyy-MM-dd HH:mm:ss
|
|
40
|
|
-# time-zone: GMT+8
|
|
41
|
|
-
|
|
|
18
|
+ ip-address: eureka-depot
|
|
|
19
|
+ status-page-url: http://eureka-depot:${server.port}/swagger-ui.html
|
|
|
20
|
+ instance-id: ${eureka.instance.ip-address}:${server.port}
|
|
42
|
21
|
|
|
43
|
22
|
spring:
|
|
44
|
|
- profiles: clouda
|
|
45
|
|
- application:
|
|
46
|
|
- name: depot-intelligent
|
|
|
23
|
+ profiles: locala
|
|
47
|
24
|
# 数据库配置
|
|
48
|
25
|
datasource:
|
|
49
|
26
|
driver-class-name: com.mysql.jdbc.Driver
|
|
50
|
|
- url: jdbc:mysql://172.16.0.46:3306/depot-yunnan?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
|
27
|
+ url: jdbc:mysql://localhost:3306/depot_yunnan?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
51
|
28
|
username: root
|
|
52
|
29
|
password: 123456
|
|
53
|
|
- minIdle: 5
|
|
54
|
|
- maxActive: 100
|
|
55
|
|
- initialSize: 10
|
|
56
|
|
- maxWait: 60000
|
|
57
|
|
- timeBetweenEvictionRunsMillis: 300000
|
|
58
|
|
- minEvictableIdleTimeMillis: 1800000
|
|
59
|
|
- validationQuery: SELECT 1 FROM DUAL
|
|
60
|
|
- testWhileIdle: true
|
|
61
|
|
- testOnBorrow: false
|
|
62
|
|
- testOnReturn: false
|
|
63
|
|
- poolPreparedStatements: true
|
|
64
|
|
- maxPoolPreparedStatementPerConnectionSize: 100
|
|
65
|
|
- removeAbandoned: true
|
|
66
|
|
- filters: stat
|
|
67
|
|
- # 缓存配置 host: redis-depot
|
|
|
30
|
+ # 缓存配置
|
|
68
|
31
|
session:
|
|
69
|
32
|
store-type: redis
|
|
70
|
33
|
redis:
|
|
71
|
|
- database: 1
|
|
72
|
|
- host: 172.16.0.46
|
|
73
|
|
- port: 6679
|
|
|
34
|
+ database: 0
|
|
|
35
|
+ host: 10.10.1.25
|
|
|
36
|
+ port: 6379
|
|
74
|
37
|
password: 123456
|
|
75
|
38
|
timeout: 3000
|
|
76
|
39
|
jedis:
|
|
|
@@ -79,58 +42,59 @@ spring:
|
|
79
|
42
|
max-wait: -1
|
|
80
|
43
|
max-idle: 8
|
|
81
|
44
|
min-idle: 0
|
|
|
45
|
+ # 静态资源配置
|
|
|
46
|
+ resources:
|
|
|
47
|
+ static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|
|
82
|
48
|
jackson:
|
|
83
|
49
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
84
|
50
|
time-zone: GMT+8
|
|
|
51
|
+ jmx:
|
|
|
52
|
+ default-domain: depotIntelligent
|
|
|
53
|
+
|
|
|
54
|
+web:
|
|
|
55
|
+ upload-path: D:/upload
|
|
|
56
|
+
|
|
85
|
57
|
#socket地址
|
|
86
|
|
-socket-url: 58.214.246.30
|
|
87
|
|
-socket-port: 42121
|
|
|
58
|
+#socket-url: 127.0.0.1
|
|
|
59
|
+#socket-port: 8999
|
|
|
60
|
+socket-url: localhost
|
|
|
61
|
+socket-port: 8999
|
|
88
|
62
|
|
|
89
|
63
|
#设置全局变量判断是云端还是库端;1云端,2本地
|
|
90
|
64
|
localOrCloud: 2
|
|
|
65
|
+
|
|
91
|
66
|
# 多通道气体
|
|
92
|
|
-gas-org-ids: 386,177,273,280
|
|
|
67
|
+gas-org-ids: 386,177,273,280,300
|
|
93
|
68
|
|
|
94
|
69
|
# 数量检测版本区分version3
|
|
95
|
70
|
num_version3: :20013
|
|
96
|
|
-
|
|
97
|
|
-## ==============================================应急端========================================================
|
|
98
|
71
|
---
|
|
99
|
|
-server:
|
|
100
|
|
- port: 9028
|
|
101
|
|
- tomcat:
|
|
102
|
|
- uri-encoding: utf-8
|
|
103
|
|
- max-http-header-size: 102400
|
|
104
|
|
-
|
|
105
|
72
|
# 注册中心配置 defaultZone: http://eureka-depot:9001/eureka/
|
|
106
|
73
|
eureka:
|
|
107
|
74
|
client:
|
|
108
|
75
|
service-url:
|
|
109
|
|
- defaultZone: http://eureka-depot:9001/eureka/
|
|
110
|
|
- registerWithEureka: false
|
|
111
|
|
- fetchRegistry: false
|
|
|
76
|
+ defaultZone: http://172.16.0.46:9511/eureka/
|
|
112
|
77
|
instance:
|
|
113
|
78
|
prefer-ip-address: true
|
|
114
|
|
- ip-address: eureka-depot
|
|
115
|
|
- status-page-url: http://eureka-depot:${server.port}/swagger-ui.html
|
|
116
|
|
- instance-id: ${eureka.instance.ip-address}:${server.port}
|
|
|
79
|
+ lease-renewal-interval-in-seconds: 10
|
|
|
80
|
+ lease-expiration-duration-in-seconds: 30
|
|
117
|
81
|
|
|
118
|
82
|
spring:
|
|
119
|
|
- profiles: locala
|
|
|
83
|
+ profiles: clouda
|
|
120
|
84
|
# 数据库配置
|
|
121
|
85
|
datasource:
|
|
122
|
86
|
driver-class-name: com.mysql.jdbc.Driver
|
|
123
|
|
- url: jdbc:mysql://localhost:3306/depot?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
|
87
|
+ url: jdbc:mysql://172.16.0.46:3306/depot-yunnan?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
124
|
88
|
username: root
|
|
125
|
89
|
password: 123456
|
|
126
|
90
|
# 缓存配置
|
|
127
|
91
|
session:
|
|
128
|
92
|
store-type: redis
|
|
129
|
93
|
redis:
|
|
130
|
|
- database: 0
|
|
131
|
|
- host: 127.0.0.1
|
|
132
|
|
- port: 6379
|
|
133
|
|
- password:
|
|
|
94
|
+ database: 1
|
|
|
95
|
+ host: 172.16.0.46
|
|
|
96
|
+ port: 6679
|
|
|
97
|
+ password: 123456
|
|
134
|
98
|
timeout: 3000
|
|
135
|
99
|
jedis:
|
|
136
|
100
|
pool:
|
|
|
@@ -148,7 +112,7 @@ spring:
|
|
148
|
112
|
default-domain: depotIntelligent
|
|
149
|
113
|
|
|
150
|
114
|
web:
|
|
151
|
|
- upload-path: D:/upload
|
|
|
115
|
+ upload-path: /home
|
|
152
|
116
|
|
|
153
|
117
|
#socket地址
|
|
154
|
118
|
#socket-url: 127.0.0.1
|
|
|
@@ -164,4 +128,3 @@ gas-org-ids: 386,177,273,280,300
|
|
164
|
128
|
|
|
165
|
129
|
# 数量检测版本区分version3
|
|
166
|
130
|
num_version3: :20013
|
|
167
|
|
-
|