Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
ldp-docs
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
doc
ldp-docs
Commits
421bcc33
Commit
421bcc33
authored
Jun 22, 2020
by
马超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(应用开发文档): 添加文件大小限制
parent
ed7aec49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
基于LDP框架的应用开发文档.md
基于LDP框架的应用开发文档.md
+12
-0
No files found.
基于LDP框架的应用开发文档.md
View file @
421bcc33
...
...
@@ -1376,6 +1376,18 @@ ldp:
file-dir
:
repo
```
应用配置文件中需要编写上传文件大小限制的配置bootstrap.yml:
```
yml
spring
:
servlet
:
multipart
:
# 设置单个文件大小
max-file-size
:
1024MB
# 总上传数据的大小
max-request-size
:
2048MB
```
#### 5.7.2 文件上传
使用
**org.apache.dubbo.config.annotation**
包中的
**@Reference**
注解,调用upload方法后,获取到一个
**ProcessResult**
对象,判断upload是否正常执行result.isExecute(),以下是代码案例:
...
...
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