mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
✨ 初始化存储引擎后, 增加测试连接机制
This commit is contained in:
@@ -68,13 +68,13 @@ public class MinIOServiceImpl implements FileService {
|
||||
minioClient = new MinioClient(endPoint, accessKey, secretKey);
|
||||
basePath = stringStorageConfigMap.get(BASE_PATH).getValue();
|
||||
basePath = basePath == null ? "" : basePath;
|
||||
isInitialized = true;
|
||||
isInitialized = testConnection();
|
||||
} catch (Exception e) {
|
||||
log.debug(StorageTypeEnum.MINIO.getDescription() + "初始化异常, 已跳过");
|
||||
}
|
||||
}
|
||||
|
||||
@Cacheable
|
||||
// @Cacheable
|
||||
@Override
|
||||
public List<FileItemDTO> fileList(String path) throws Exception {
|
||||
path = StringUtils.removeFirstSeparator(path);
|
||||
|
||||
Reference in New Issue
Block a user