Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
2d969b59
Commit
2d969b59
authored
Mar 22, 2021
by
m1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资讯模块——邀请码过滤特殊字符功能功能修复
parent
90b61f2e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
FileUploadConfig.java
...c/main/java/cn/wisenergy/web/config/FileUploadConfig.java
+3
-0
application.yml
wisenergy-web-admin/src/main/resources/application.yml
+1
-0
No files found.
wisenergy-web-admin/src/main/java/cn/wisenergy/web/config/FileUploadConfig.java
View file @
2d969b59
...
...
@@ -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
;
}
}
wisenergy-web-admin/src/main/resources/application.yml
View file @
2d969b59
...
...
@@ -4,6 +4,7 @@ server:
threads
:
max
:
1000
min-spare
:
30
max-swallow-size
:
1024M
port
:
8997
servlet
:
context-path
:
/shop-mall
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment