@Component public class MinioStorageManager extends BaseStorageManager
| 构造器和说明 |
|---|
MinioStorageManager() |
get, get, initBaseStorageManager@PostConstruct public void init()
public FileStorageEnum storageType()
storageType 在类中 BaseStorageManagerpublic void createClient(String accessKey, String secretKey) throws Exception
Exceptionpublic void uploadFile(InputStream inputStream, String contentType, String objectName) throws Exception
Exceptionpublic void uploadFile(String bucketName, InputStream inputStream, String contentType, String objectName) throws Exception
Exceptionpublic void uploadDir(String dirPath)
public InputStream getFile(String objectName)
public void deleteObjects(String bucketName, List<String> objectNameList) throws Exception
Exceptionpublic void deleteObject(String bucketName, String objectName) throws Exception
Exceptionpublic boolean checkFileIsExist(String objectName)
public boolean checkFolderIsExist(String folderName)
Copyright © 2024. All rights reserved.