Commit 8ef2d228f211803163ac3bdb37d1e9186b3871cf
1 parent
59bbf2d9
spring boot 2 上传文件大小配置
Showing
3 changed files
with
12 additions
and
0 deletions
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-dev.yml
@@ -13,6 +13,10 @@ management: | @@ -13,6 +13,10 @@ management: | ||
13 | include: metrics,httptrace | 13 | include: metrics,httptrace |
14 | 14 | ||
15 | spring: | 15 | spring: |
16 | + servlet: | ||
17 | + multipart: | ||
18 | + max-file-size: 10MB | ||
19 | + max-request-size: 10MB | ||
16 | mail: | 20 | mail: |
17 | host: smtp.163.com | 21 | host: smtp.163.com |
18 | username: jeecgos@163.com | 22 | username: jeecgos@163.com |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-prod.yml
@@ -13,6 +13,10 @@ management: | @@ -13,6 +13,10 @@ management: | ||
13 | include: metrics,httptrace | 13 | include: metrics,httptrace |
14 | 14 | ||
15 | spring: | 15 | spring: |
16 | + servlet: | ||
17 | + multipart: | ||
18 | + max-file-size: 10MB | ||
19 | + max-request-size: 10MB | ||
16 | mail: | 20 | mail: |
17 | host: smtp.163.com | 21 | host: smtp.163.com |
18 | username: jeecgos@163.com | 22 | username: jeecgos@163.com |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-test.yml
@@ -13,6 +13,10 @@ management: | @@ -13,6 +13,10 @@ management: | ||
13 | include: metrics,httptrace | 13 | include: metrics,httptrace |
14 | 14 | ||
15 | spring: | 15 | spring: |
16 | + servlet: | ||
17 | + multipart: | ||
18 | + max-file-size: 10MB | ||
19 | + max-request-size: 10MB | ||
16 | mail: | 20 | mail: |
17 | host: smtp.163.com | 21 | host: smtp.163.com |
18 | username: jeecgos@163.com | 22 | username: jeecgos@163.com |