Commit 2d969b59 authored by m1991's avatar m1991

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

parent 90b61f2e
...@@ -7,6 +7,7 @@ import org.springframework.web.multipart.commons.CommonsMultipartResolver; ...@@ -7,6 +7,7 @@ import org.springframework.web.multipart.commons.CommonsMultipartResolver;
/** /**
* 文件上传配置 * 文件上传配置
*
* @author wyy * @author wyy
* @date 2019-08-22 19:20 * @date 2019-08-22 19:20
*/ */
...@@ -15,6 +16,7 @@ public class FileUploadConfig { ...@@ -15,6 +16,7 @@ public class FileUploadConfig {
/** /**
* 重新定义文件上传对象【springBoot request转化成MultipartHttpServletRequest】 * 重新定义文件上传对象【springBoot request转化成MultipartHttpServletRequest】
*
* @return * @return
*/ */
@Bean(name = "multipartResolver") @Bean(name = "multipartResolver")
...@@ -24,6 +26,7 @@ public class FileUploadConfig { ...@@ -24,6 +26,7 @@ public class FileUploadConfig {
resolver.setResolveLazily(true); resolver.setResolveLazily(true);
resolver.setMaxInMemorySize(1024 * 1024 * 1024); resolver.setMaxInMemorySize(1024 * 1024 * 1024);
resolver.setMaxUploadSize(1024 * 1024 * 1024); resolver.setMaxUploadSize(1024 * 1024 * 1024);
resolver.setMaxUploadSizePerFile(1024 * 1024 * 1024);
return resolver; return resolver;
} }
} }
...@@ -4,6 +4,7 @@ server: ...@@ -4,6 +4,7 @@ server:
threads: threads:
max: 1000 max: 1000
min-spare: 30 min-spare: 30
max-swallow-size: 1024M
port: 8997 port: 8997
servlet: servlet:
context-path: /shop-mall 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