Browse Source

设置http.encoding.force为true,限制文件上传大小最高为128MB

sunyj 9 years ago
parent
commit
13162e6a07
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/main/resources/bootstrap.yml

+ 7 - 0
src/main/resources/bootstrap.yml

@@ -4,6 +4,13 @@ spring:
  cloud:
   config:
    uri: http://config.ubtob.com
+ http:
+  encoding:
+   force: true
+  multipart:
+   enabled: true
+   max-file-size: 128MB
+   max-request-size: 128MB
  jpa:
   database: ORACLE
   show-sql: false