Browse Source

提交分支

魏超 6 years ago
parent
commit
b34f3c94c0

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/ImageController.java View File

37
         long time = System.currentTimeMillis();
37
         long time = System.currentTimeMillis();
38
 
38
 
39
         ossClient.putObject(bucketName, imgName, new ByteArrayInputStream(uploadFile.getBytes()));
39
         ossClient.putObject(bucketName, imgName, new ByteArrayInputStream(uploadFile.getBytes()));
40
+
40
         // 关闭client
41
         // 关闭client
41
         ossClient.shutdown();
42
         ossClient.shutdown();
42
         Date expiration = new Date(time + 3600 * 1000 * 24 * 365 * 10);
43
         Date expiration = new Date(time + 3600 * 1000 * 24 * 365 * 10);

+ 4
- 0
CODE/smart-community/app-api/src/main/resources/bootstrap.yml View File

13
         serviceId: config-server
13
         serviceId: config-server
14
   session:
14
   session:
15
     store-type: jdbc
15
     store-type: jdbc
16
+  servlet:
17
+    multipart:
18
+      max-file-size: 10MB
19
+      max-request-size: 50MB
16
 eureka:
20
 eureka:
17
   client:
21
   client:
18
     service-url:
22
     service-url: