Browse Source

图片上传限制为10MB

qianming 4 years ago
parent
commit
74aa4de0f3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      report-core/src/main/resources/bootstrap-dev.yml

+ 4 - 0
report-core/src/main/resources/bootstrap-dev.yml

@@ -10,6 +10,10 @@ server:
 spring:
 spring:
   application:
   application:
     name: aj-report
     name: aj-report
+  #上传图片大小限制为10MB
+  servlet:
+    multipart:
+      max-file-size: 10MB
   #  cloud:
   #  cloud:
 #    nacos:
 #    nacos:
 #      server-addr: 10.108.26.121:8848,10.108.26.145:8848
 #      server-addr: 10.108.26.121:8848,10.108.26.145:8848