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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
server:
port: 28083
spring:
servlet:
multipart:
max-file-size: 200MB
max-request-size: 200MB
datasource:
druid:
#监控统计拦截的filters
filters: stat,wall
web-stat-filter:
enabled: true #是否启用StatFilter默认值true
url-pattern: /*
exclusions: /druid/*,*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico
session-stat-enable: true
session-stat-max-count: 10
stat-view-servlet:
# 是否启用statViewServlet配置
enabled: true
# 访问监控页面
url-pattern: "/druid/*"
# 禁止手动重置监控数据
reset-enable: false
# 设置监控页面的登陆名
login-username: root
# 设置监控页面的登陆密码
login-password: root
allow:
#慢SQL
filter:
stat:
merge-sql: true
slow-sql-millis: 10000
log-slow-sql: true
dynamic:
druid:
#配置初始化大小/最小/最大
initial-size: 1
min-idle: 1
max-active: 20
#获取连接等待超时时间
max-wait: 60000
#间隔多久进行一次检测,检测需要关闭的空闲连接
time-between-eviction-runs-millis: 60000
#一个连接在池中最小生存的时间
min-evictable-idle-time-millis: 30000
validation-query: SELECT 'x' FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
#打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20
datasource:
master:
# username: ${MYSQL_USERNAME:root}
# password: Q2WOs9GI65/kbak1jftbxtyRboBtXqRWSERIwDm3zHPgfqqNkeXbHVj7g+ZDwj9sx8Dbxnqv22/M8TceQsLtqQ==
# password: ${MYSQL_PASSWORD:qazwsx.101}
# url: jdbc:mysql://${MYSQL_IP:10.10.80.93}:${MYSQL_PORT:13306}/${MYSQL_DATABASE:zlmy}?tinyInt1isBit=false&useUnicode=true&autoReconnect=true&useSSL=false&characterEncoding=UTF8&allowMultiQueries=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
username: root
password: ZLmy!@#$
url: jdbc:mysql://192.168.1.5:3306/zlmy-prod?tinyInt1isBit=false&useUnicode=true&autoReconnect=true&useSSL=false&characterEncoding=UTF8&allowMultiQueries=true&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
driver-class-name: com.mysql.cj.jdbc.Driver
# druid:
# public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAIUIgqiCXvhtN0/BzDw0Q5hrTBYZe1/YzAgtVGr4TLtPqlJDecGjgxQw0A51phIOp8Z4NRo9V5BsH62RPIKwI10CAwEAAQ==
freemarker:
cache: false #关闭模板缓存,方便测试
settings:
template_update_delay: 0 #检查模板更新延迟时间,设置为0表示立即检查,如果时间大于0会有缓存不方便进行模板测试
suffix: .ftl #指定Freemarker模板文件的后缀名
template-loader-path: classpath:/ureport
redis:
host: 192.168.1.5
#host: 10.6.72.36
port: 6379
#password: qazwsx.101
password: ZLmy@Redis#$%
database: 2
## Log Path
logging:
config: classpath:logback-spring.xml
file:
path: logs/
## 异步线程池
tong:
async:
executor:
thread:
core_pool_size: 5
max_pool_size: 5
queue_capacity: 999
name:
prefix: tong-async-
## 代码生成
gen:
# 作者
author: testor-framework
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
packageName: com.testor.module
# 自动去除表前缀,默认是true
autoRemovePre: false
# 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
tablePrefix: sys_
## Flowable
flowable:
async-executor-activate: false
## Auth Filter
auth:
##为true,进行资源URI与授权的关联判断
resource: false
##三员分立功能开关
sanyuan: false
sign:
ignoreGet: false
timeGap: 60000
## Framework
tfw:
request:
##不需要进行request封装的URI
ignore: /**/druid/*,/**/ureport/*
basePath: http://127.0.0.1:${server.port}
## Mybatis
mybatis-plus:
global-config:
db-config:
id-type: uuid
configuration:
cache-enabled: false
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations: classpath*:/mapper/**/**/**.xml
configuration-properties:
prefix:
blobType: BLOB
boolValue: TRUE
## File path
file:
path: /home/ZLMY/test/data/file/
dataview:
file: /home/ZLMY/test/data/dataview-file/
tiny:
file:
path: /home/ZLMY/test/data/tinyFile/
url: /tinyFile/
## Swagger
swagger:
enable: true
title: TFW API查看器
description: Tong Framework Back-End
version: 1.0
contact:
name: Ivan@tongtech
url: a.b.c.d
mail: a@b.c.d
minio:
accessKey: admin
secretKey: ZLmy@Minio
bucket: zlmy
endpoint: http://192.168.1.5:9000
access-Key: admin
access-secret: ZLmy@Minio
#访问路径
path: http://192.168.1.5:9000
imgInport: http://192.168.1.5:9000
xxl:
job:
accessToken:
admin:
addresses: http://${XXLJOB_IP:192.168.1.5}:${XXLJOB_PORT:8012}/xxl-job-admin
executor:
address: ''
appname: ${XXLJOB_APPNAME:zlmy-boot}
ip: '192.168.1.5'
logpath: /data/applogs/xxl-job/jobhandler
logretentiondays: 30
port: ${XXLJOB_CONN_PORT:9997} #xxl-job连接端口
# cronUtil 所需配置信息
adminAddresses: http://${XXLJOB_IP:10.10.80.93}:${XXLJOB_PORT:8080}/xxl-job-admin
appname: ${XXLJOB_APPNAME:zlmy-boot}
logretentiondays: 30
port: ${XXLJOB_CONN_PORT:9998}
accessToken:
## 报表下载
ureport:
path: http://localhost:18083
#第三方监控视频接入地址
three:
video:
#url: http://${THREE_VIDEO_IP:app.cfciot.com}:${THREE_VIDEO_PORT:8080}
url: http://iotx.cofcodata.com:12800
videoinfo:
url: http://${THREE_VIDEODEVICE_IP:123.125.253.26}:${THREE_VIDEODEVICE_PORT:6006}
username: ${THREE_VIDEODEVICE_USERNAME:anhuan}
password: ${THREE_VIDEODEVICE_PASSWORD:EherW6HNOx}
# 中粮 OA地址
zlsystem:
url: http://${ZLSYSTEM_IP:10.19.18.73}:${ZLSYSTEM_PORT:80}
## 教育培训扫码考试
train:
path: http://${TRAIN_IP:10.10.80.93}:${TRAIN_PORT:80}
#图安对接地址
tuan:
path: https://mywxzy.cofco.com:17703/api
#http://${TUAN_IP:117.14.55.74}:${TUAN_PORT:17703}/api/dform/index/GetMYDHZY
## 网关地址
apisix:
minioroute:
url: http://192.168.1.5:9000
## 全局报警
global:
alarem:
url: http://123.125.253.26:6006
username: anhuan
password: EherW6HNOx
iam:
iamUrl: https://ydbg.cofco.com:8002
# App的唯一标识
appId: 4d3c6504-6ad6-45f0-9ef1-c74ce92ad51a
# App调用OpenApi或SDK时需要的Secret
appSecret: 1f971f05-4582-452f-af8b-534b46d23820
appList:
- type: pc
clientid: ZWI4YzkyMDIxYjQzNGNmMTk1OWIxZjM3YzUyMmZiNjc
clientsecret: scQFEahtRY69X9NObAAy8I8ZWC3DyMTQ
redirecturl: http://10.6.72.36
publickey: '{"kty":"RSA","kid":"F673F9052DA54DC69C9EF3CA2985CB91","use":"sig","alg":"RS256","n":"h47Rlg5X4_hT6HOobMLpE-28anQnneIby2d3QShD71fb5eAea4ORDeYbMAEXHA587pJm9GdrpZIqhgB7iEyHgvtG3j65k1voJyIirDfdgvj6XDSXLNd-7eRsB3SThkgogdL_q6xXPczMa_O-zXjSkVhxDnglnVvilj7be3CjfWIImQFiaM4vGm9FX9QFA8QNOtUZZhZBro_EN65G_NnRRLXa9jM5VB4Bn9rqduNi_3cWFZGqGQb4zkI-rOLbLdMlgio4RFokq6NtjdSKcq4ROKlPRNffa1WHn6LpYFmrbfjFL527r-nf6kHxcoxYZQaQkIk-KpyFAAlC9DFdgGMp7w","e":"AQAB"}'
- type: h5
clientid: ZGU5NDgwNzA2NWI2NGYzZTk0MzdhNmUxNmM4MDJmNzE
clientsecret: Ub6kIhvdMQm4wrPITDfyT1Oof2x3sDcI
redirecturl: http://10.6.72.36/h5
publickey: '{"kty":"RSA","kid":"2C79F650BBCD442498648BA88B54AD59","use":"sig","alg":"RS256","n":"6R-jI7bGF48ok7X_aIZ9Qb7runxd4zf9z0rnnHfybxbcGDMQV_NPpvhW4JIVUSiDFAo9TcphnGk4PdnP_zxT_-bL5r2rD04I3f7dwQn39YTU2ZFC_gzmS7zHS8V8aHACCEmLP1bW9Qxrad29WUsakIx8remqzMucVtIKc11zdDQ6m9pu3jUvS9YFK-MotMUbCjqrAnZN3P_TITLRwLYSn6ZtIPenbdEGAVFoTZpiHBRrFokvW1w0EUee37dTZZ-gMP2EUDVIy4kWc6FwUYRgZd6MBgCgH-6b5bSef_Afs0W4zPP3Xqxfd2I3XBQ_1z_p8rPhY6N-RVvyNdJnJ52qtQ","e":"AQAB"}'
#租赁库管理附件接口
hire:
depository:
baseUrl: http://10.19.18.242:8001
queryFileList: ${hire.depository.baseUrl}/services/cup-file-service/api/file/queryFileList?systemTag=zlkIn&interactionId=cofco-supplier-system
downloadFile: ${hire.depository.baseUrl}/services/cup-file-service/api/file/downloadFile?systemTag=zlkIn&interactionId=cofco-supplier-system
realDownloadUrl: http://192.168.1.5:8081/api/hireDepositoryManageBase/zlFileLoad?systemTag=zlkIn