赞
踩
点击▲关注 “爪哇笔记” 给公众号标星置顶
更多摄影技巧 第一时间直达
基于 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;
-
- }
之前整合过 SpringBoot1.x 的版本的网盘项目,不过 SpringBoot2.x 稍微有点变化,做了一点点处理,后续会跟进更多功能,比如多用户文件管理、文件预览鉴权等等一系列功能。
推荐一个基于 SpringBoot + Mybatis + Vue 的代码生成器
网盘神器
1. 首先识别下方二维码
2. 后台回复「网盘」即可获取
你点的每个在看,我都认真当成了喜欢
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。