Browse Source

华为云oss

xdd 1 month ago
parent
commit
56d9ab29a6

+ 6 - 6
fs-admin/src/main/resources/application.yml

@@ -51,12 +51,12 @@ spring:
     include: config
   # 文件上传
   servlet:
-     multipart:
-       # 单个文件大小
-       max-file-size:  10MB
-       # 设置总上传的文件大小
-       max-request-size:  20MB
-       enabled: false
+    multipart:
+      enabled: false # 默认是 true,确认一下
+      # 单个文件大小
+      max-file-size:  200MB
+      # 设置总上传的文件大小
+      max-request-size:  200MB
   # 服务模块
   devtools:
     restart:

+ 1 - 0
fs-service-system/src/main/java/com/fs/store/vo/FsAdvListQueryVO.java

@@ -24,5 +24,6 @@ public class FsAdvListQueryVO implements Serializable
 
     private Integer showType;
 
+    private Integer sort;
 
 }

+ 1 - 0
fs-service-system/src/main/java/com/fs/system/oss/HuaweiCloudStorageService.java

@@ -63,6 +63,7 @@ public class HuaweiCloudStorageService extends CloudStorageService
         try {
             // 文件上传
             com.obs.services.model.PutObjectRequest request = new PutObjectRequest(config.getHuaweiBucketName(), objKey,new ByteArrayInputStream(data));
+
             client.putObject(request);
         } catch (ObsException e) {
             throw new ObsException("文件上传失败," + e.getErrorMessage());