簡介
基于 SpringBoot2.x + elFinder 搭建的私有云盤服務,功能堪比某度網盤,豐富的界面化操作,提供了各種API實作,最主要的是還可以自己定制開發相關功能,是一款不可多得的檔案管理利器。
環境搭建
軟體 版本 功能 地址
SpringBoot 2.2.6 全能框架 https://spring.io/projects/spring-boot/
elFinder 2.1.38 檔案管理 https://studio-42.github.io/elFinder/
檔案管理
檔案以及檔案夾新增,洗掉,移動,重名
在線打包檔案
檔案下載、上傳
在線預覽檔案,圖片
在線處理圖片,檔案
配置
配置引數:
# ===================================
# 網盤
# ===================================
file-manager.command = com.tools.common.elfinder.command
file-manager.thumbnail.width=80
file-manager.volumes[0].Node=
file-manager.volumes[0].source=fileSystem
file-manager.volumes[0].alias=file
file-manager.volumes[0].path=D://cloudFile
file-manager.volumes[0].isDefault=true
file-manager.volumes[0].locale=
file-manager.volumes[0].constraint.locked=false
file-manager.volumes[0].constraint.readable=true
file-manager.volumes[0].constraint.writable=true
映射配置:
@Component
@Data
@ConfigurationProperties(prefix="file-manager")
public class ElfinderConfiguration {
private Thumbnail thumbnail;
private String command;
private List<Node> volumes = new ArrayList<>();
private Long maxUploadSize = -1L;
}
預覽




https://gitee.com/52itstyle/SPTools小結
之前整合過 SpringBoot1.x 的版本的網盤專案,不過 SpringBoot2.x 稍微有點變化,做了一點點處理,后續會跟進更多功能,比如多用戶檔案管理、檔案預覽鑒權等等一系列功能。
原始碼
網盤地址:https://gitee.com/52itstyle/SPTools,使用Git拉取,然后切換到網盤版分支即可體驗。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/171409.html
標籤:Web 開發
上一篇:千萬級ftp檔案的讀取與校驗方案
下一篇:怎么做api介面安全?
