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
spring:
web:
resources:
static-locations: classpath:/
thymeleaf:
prefix: classpath:/template/
suffix: .html
application:
name: science-admin
profiles:
# active: '@profiles.active@'
active: 'local'
http:
encoding:
force: true
servlet:
multipart:
max-file-size: 20MB
max-request-size: 20MB
jackson:
dateFormat: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
resources:
static-locations: classpath:/META-INF/resources/,classpath:/resources/, classpath:/static/, classpath:/public/, file:D:/static
server:
port: 8095
connectionTimeout: 180000
tomcat:
uri-encoding: UTF-8
#最大并发数
max-threads: 1000
#接受和处理的最大连接数
max-connections: 20000
#初始化时创建的线程数
min-SpareThreads: 20
acceptCount: 700
mybatis-plus:
global-config:
banner: false
db-config:
id-type: auto
mapper-locations: classpath*:mapper/*.xml
mybatis:
custom-cache:
flushInterval: 3600
# log
logging:
file: /home/data/logs/${spring.application.name}.log
errorFile: /home/data/logs/${spring.application.name}_error.log
fileMaxHistory: 30
fileMaxSize: 50MB
pattern:
console: '%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(${PID} [%X{track_id}] ${spring.application.name}){magenta} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wEx'
# doc
swagger:
enable: true
title: 贵州省卫生健康科研项目管理系统
description: "补充说明详见wiki http://wiki.yiboshi.com/pages/viewpage.action?pageId=8454338"
basePackage: com.yiboshi.science.rest.v1
globalHeader: true
---
#贵州省卫生健康科研项目管理系统(本地环境)
spring:
profiles: local
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://ybs01beta.mysql.rds.aliyuncs.com/yn_srp_system?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
username: yn_kysb
password: '&Zk4obO7v@'
redis:
# 超时时间
timeout: 10000ms
# 服务器地址
host: 192.168.1.95
# 服务器端口
port: 6379
# 数据库
database: 4
# 密码
password: Ynbys2@)@)
lettuce:
pool:
# 最大连接数(默认8)
max-active: 1024
# 最大连接阻塞等待时间,默认-1
max-wait: 10000ms
# 最大空闲连接
max-idle: 200
# 最小空闲连接
min-idle: 2
---
#内蒙卫生健康科研项目管理系统(测试环境)
spring:
profiles: test
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://ybs01beta.mysql.rds.aliyuncs.com/yn_srp_system?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
username: yn_kysb
password: '&Zk4obO7v@'
redis:
# 超时时间
timeout: 10000ms
# 服务器地址
host: 192.168.1.23
# 服务器端口
port: 6379
# 数据库
database: 4
# 密码
password: 123456
lettuce:
pool:
# 最大连接数(默认8)
max-active: 1024
# 最大连接阻塞等待时间,默认-1
max-wait: 10000ms
# 最大空闲连接
max-idle: 200
# 最小空闲连接
min-idle: 5
---
#贵州省卫生健康科研项目管理系统(开发环境)
spring:
profiles: dev
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://ybs01beta.mysql.rds.aliyuncs.com/yn_srp_system?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
username: yn_kysb
password: '&Zk4obO7v@'
redis:
# 超时时间
timeout: 10000ms
# 服务器地址
host: beta-reids-pub.redis.rds.aliyuncs.com
# 服务器端口
port: 6379
# 数据库
database: 4
# 密码
password: yn_kysb:&Zk4obO7v@
lettuce:
pool:
# 最大连接数(默认8)
max-active: 1024
# 最大连接阻塞等待时间,默认-1
max-wait: 10000ms
# 最大空闲连接
max-idle: 200
# 最小空闲连接
min-idle: 5
---
#贵州省卫生健康科研项目管理系统(生成环境)
spring:
profiles: prod
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://nmg-kysb.mysql.rds.aliyuncs.com/yn_srp_system?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=Asia/Shanghai
username: yhbj_yn
password: 'WpKJS2ZEx&35DrU'
redis:
# 超时时间
timeout: 10000ms
# 服务器地址
host: nmg-kysb.redis.rds.aliyuncs.com
# 服务器端口
port: 6379
# 数据库
database: 7
# 密码
password: yhbj_yn:WpKJS2ZEx&35DrU
lettuce:
pool:
# 最大连接数(默认8)
max-active: 1024
# 最大连接阻塞等待时间,默认-1
max-wait: 10000ms
# 最大空闲连接
max-idle: 200
# 最小空闲连接
min-idle: 5
---
# 登录相关配置
verification:
# 验证码
verification-code:
# 验证码类型配置 查看 LoginProperties 类
code-type: spec
# 登录图形验证码有效时间/分钟
expiration: 5
# 验证码高度
width: 111
# 验证码宽度
heigth: 36
# 内容长度
length: 4
# 字体名称,为空则使用默认字体
font-name:
# 字体大小
font-size: 25
---
system:
defaultCodeLength: 5
# 字体大小 贵州科研23 # 内蒙科研 24
systemId: 24
systemName: 云南省卫生健康科技项目管理系统
---