新增上传文件的断点续传 file.checkpoint,支持多线程并发分片上传;新增是否其中秒传开关 file.checkmd5

参数;js.log 支持多参数,如:log(a, b, c);增加一些tomcat参数例子;
This commit is contained in:
thinkgem
2021-07-10 17:04:59 +08:00
parent 8abcf5f9f8
commit 739b856d78
2 changed files with 36 additions and 15 deletions

View File

@@ -85,7 +85,7 @@ spring:
# 缓存及会话共享(专业版)
isClusterMode: false
# 清理全部缓存按钮所清理的缓存列表
clearNames: sysCache,corpCache,userCache,cmsCache,msgPcPoolCache
clearNames: sysCache,corpCache,userCache,cmsCache,msgPcPoolCache,roleCache,fileUploadCache
# 打印横幅
main:
@@ -631,7 +631,7 @@ file:
uploadPath: '{yyyy}{MM}/'
# 上传单个文件最大字节500M在这之上还有 > Tomcat限制 > Nginx限制此设置会覆盖 spring.http.multipart.maxFileSize 设置
maxFileSize: 500*1024*1024
maxFileSize: '500*1024*1024'
# 设置允许上传的文件后缀(全局设置)
imageAllowSuffixes: .gif,.bmp,.jpeg,.jpg,.ico,.png,.tif,.tiff,
@@ -648,14 +648,20 @@ file:
imageMaxWidth: 1024
imageMaxHeight: 768
# 是否开启分片上
chunked: false
# 分片大小单位字节10M
chunkSize: 10485760
# 最大上传线程数
threads: 1
# 是否启用秒
checkmd5: true
# 是否用文件流方式下载(支持断点续传)
# 是否开启分片上传
chunked: true
# 分片大小单位字节10M
chunkSize: '10*1024*1024'
# 最大上传线程数
threads: 3
# 是否启用检查点(支持断点续传,上传)
checkpoint: true
# 是否用文件流方式下载(支持断点续传,下载)
isFileStreamDown: true
# 视频转码

View File

@@ -25,8 +25,17 @@ server:
context-path: /js
tomcat:
uri-encoding: UTF-8
#maxHttpFormPostSize: -1
# # 表单请求数据的最大大小
# max-http-form-post-size: 20M
# # 进程的最大连接数
# max-connections: 8192
# # 连接数满后的排队个数
# accept-count: 100
# # 线程数最大和最小个数
# threads:
# max: 200
# min-spare: 10
# 当 Nginx 为 httpstomcat 为 http 时,设置该选项为 true
schemeHttps: false
@@ -254,7 +263,7 @@ spring:
# # 缓存及会话共享(专业版)
# isClusterMode: false
# # 清理全部缓存按钮所清理的缓存列表
# clearNames: sysCache,corpCache,userCache,cmsCache,msgPcPoolCache
# clearNames: sysCache,corpCache,userCache,cmsCache,msgPcPoolCache,roleCache,fileUploadCache
# 日志配置
logging:
@@ -764,12 +773,18 @@ shiro:
# imageMaxWidth: 1024
# imageMaxHeight: 768
#
# # 是否启用秒传
# checkmd5: true
#
# # 是否开启分片上传
# chunked: false
# chunked: true
# # 分片大小单位字节10M
# chunkSize: 10485760
# chunkSize: '10*1024*1024'
# # 最大上传线程数
# threads: 1
# threads: 3
#
# # 是否启用检查点(支持断点续传,上传)
# checkpoint: true
#
# # 是否用文件流方式下载(支持断点续传)
# isFileStreamDown: true