From 739b856d787b323eca3e5259815e929a1e57a3bf Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sat, 10 Jul 2021 17:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8A=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=96=AD=E7=82=B9=E7=BB=AD=E4=BC=A0=20file.c?= =?UTF-8?q?heckpoint=EF=BC=8C=E6=94=AF=E6=8C=81=E5=A4=9A=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E5=B9=B6=E5=8F=91=E5=88=86=E7=89=87=E4=B8=8A=E4=BC=A0=EF=BC=9B?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=98=AF=E5=90=A6=E5=85=B6=E4=B8=AD=E7=A7=92?= =?UTF-8?q?=E4=BC=A0=E5=BC=80=E5=85=B3=20=20file.checkmd5=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=EF=BC=9Bjs.log=20=E6=94=AF=E6=8C=81=E5=A4=9A=E5=8F=82?= =?UTF-8?q?=E6=95=B0=EF=BC=8C=E5=A6=82=EF=BC=9Alog(a,=20b,=20c)=EF=BC=9B?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9Btomcat=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=BE=8B=E5=AD=90=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/config/jeesite-core.yml | 24 ++++++++++------- web/src/main/resources/config/application.yml | 27 ++++++++++++++----- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/modules/core/src/main/resources/config/jeesite-core.yml b/modules/core/src/main/resources/config/jeesite-core.yml index 66b8a407..d6c9e95a 100644 --- a/modules/core/src/main/resources/config/jeesite-core.yml +++ b/modules/core/src/main/resources/config/jeesite-core.yml @@ -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 # 视频转码 diff --git a/web/src/main/resources/config/application.yml b/web/src/main/resources/config/application.yml index 08ad1f27..64b68953 100644 --- a/web/src/main/resources/config/application.yml +++ b/web/src/main/resources/config/application.yml @@ -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 为 https,tomcat 为 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