魏超 hace 6 años
padre
commit
b34f3c94c0

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

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

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

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