Commit 421bcc33 authored by 马超's avatar 马超

feat(应用开发文档): 添加文件大小限制

parent ed7aec49
...@@ -1376,6 +1376,18 @@ ldp: ...@@ -1376,6 +1376,18 @@ ldp:
file-dir: repo file-dir: repo
``` ```
应用配置文件中需要编写上传文件大小限制的配置bootstrap.yml:
```yml
spring:
servlet:
multipart:
# 设置单个文件大小
max-file-size: 1024MB
# 总上传数据的大小
max-request-size: 2048MB
```
#### 5.7.2 文件上传 #### 5.7.2 文件上传
使用 **org.apache.dubbo.config.annotation** 包中的 **@Reference** 注解,调用upload方法后,获取到一个 **ProcessResult** 对象,判断upload是否正常执行result.isExecute(),以下是代码案例: 使用 **org.apache.dubbo.config.annotation** 包中的 **@Reference** 注解,调用upload方法后,获取到一个 **ProcessResult** 对象,判断upload是否正常执行result.isExecute(),以下是代码案例:
......
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