Commit 2d969b59 authored by m1991's avatar m1991

资讯模块——邀请码过滤特殊字符功能功能修复

parent 90b61f2e
......@@ -7,6 +7,7 @@ import org.springframework.web.multipart.commons.CommonsMultipartResolver;
/**
* 文件上传配置
*
* @author wyy
* @date 2019-08-22 19:20
*/
......@@ -15,6 +16,7 @@ public class FileUploadConfig {
/**
* 重新定义文件上传对象【springBoot request转化成MultipartHttpServletRequest】
*
* @return
*/
@Bean(name = "multipartResolver")
......@@ -24,6 +26,7 @@ public class FileUploadConfig {
resolver.setResolveLazily(true);
resolver.setMaxInMemorySize(1024 * 1024 * 1024);
resolver.setMaxUploadSize(1024 * 1024 * 1024);
resolver.setMaxUploadSizePerFile(1024 * 1024 * 1024);
return resolver;
}
}
......@@ -4,6 +4,7 @@ server:
threads:
max: 1000
min-spare: 30
max-swallow-size: 1024M
port: 8997
servlet:
context-path: /shop-mall
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment