├── screenshot
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
└── 6.png
├── src
└── main
│ ├── webapp
│ ├── static
│ │ ├── bootstrap
│ │ │ ├── fonts
│ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ ├── js
│ │ │ │ ├── npm.js
│ │ │ │ └── bootstrap.min.js
│ │ │ └── css
│ │ │ │ ├── bootstrap-theme.min.css
│ │ │ │ ├── bootstrap-theme.min.css.map
│ │ │ │ └── bootstrap-theme.css
│ │ └── common
│ │ │ ├── login.js
│ │ │ └── signUp.js
│ └── WEB-INF
│ │ ├── views
│ │ └── jsp
│ │ │ ├── common
│ │ │ ├── taglib.jsp
│ │ │ └── head.jsp
│ │ │ ├── login.jsp
│ │ │ ├── shareFileIndex.jsp
│ │ │ ├── signUp.jsp
│ │ │ └── files.jsp
│ │ └── web.xml
│ ├── resources
│ ├── spring-context.xml
│ ├── c3p0-config.xml
│ ├── spring-context-shiro.xml
│ ├── spring-mvc.xml
│ └── log4j2.xml
│ └── java
│ └── cn
│ └── tangtj
│ └── clouddisk
│ ├── web
│ ├── MainController.java
│ ├── LoginController.java
│ ├── ShareFileController.java
│ ├── SignUpController.java
│ └── FileController.java
│ ├── utils
│ ├── JdbcUtil.java
│ ├── UserUtil.java
│ ├── FileUtil.java
│ └── StringUtil.java
│ ├── entity
│ ├── vo
│ │ ├── SignUpNameCheckResult.java
│ │ ├── ShareFile.java
│ │ ├── Guest.java
│ │ └── Files.java
│ ├── User.java
│ └── UploadFile.java
│ ├── service
│ ├── UserService.java
│ └── FileService.java
│ ├── security
│ ├── FormFilterAuthc.java
│ └── SystemRealm.java
│ └── dao
│ ├── UserDao.java
│ └── FileDao.java
├── .gitignore
├── README.md
└── pom.xml
/screenshot/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/screenshot/1.png
--------------------------------------------------------------------------------
/screenshot/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/screenshot/2.png
--------------------------------------------------------------------------------
/screenshot/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/screenshot/3.png
--------------------------------------------------------------------------------
/screenshot/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/screenshot/4.png
--------------------------------------------------------------------------------
/screenshot/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/screenshot/5.png
--------------------------------------------------------------------------------
/screenshot/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/screenshot/6.png
--------------------------------------------------------------------------------
/src/main/webapp/static/bootstrap/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/src/main/webapp/static/bootstrap/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/src/main/webapp/static/bootstrap/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/src/main/webapp/static/bootstrap/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/src/main/webapp/static/bootstrap/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/src/main/webapp/static/bootstrap/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/src/main/webapp/static/bootstrap/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Descartes007/no015_CloudDiskSys/HEAD/src/main/webapp/static/bootstrap/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/src/main/resources/spring-context.xml:
--------------------------------------------------------------------------------
1 |
2 |
获取sql文件 QQ: 605739993 QQ群: 377586148
4 |[个人站点: 从戎源码网](https://armycodes.com/)
5 | 6 | ## 简介 7 | 8 | > 本代码来源于网络,仅供学习参考使用! 9 | > 10 | > 提供1.远程部署/2.修改代码/3.设计文档指导/4.框架代码讲解等服务 11 | > 12 | > 前端地址:http://localhost:8080/ 13 | > 14 | > 用户:admin 密码: 123456 15 | 16 | ## 项目介绍 17 | 18 | 基于SSM框架的网盘系统:前端 Jsp、BootStrap、JQuery、Ajax,后端 SpringMVC、Mybatis,系统角色分为:用户,用户对网盘进行管理等。主要功能如下: 19 | 20 | ### 启动方式 21 | 22 | - 前端: 23 | > 按钮启动 | 启动Tomcat 24 | 25 | - 后端: 26 | > 按钮启动 | 启动Tomcat 27 | 28 | ### 用户: 29 | 30 | - 基本操作:登录、注册 31 | - 其他操作:上传文件、分享文件、下载文件、删除文件、获取文件列表、获取文件信息详情 32 | 33 | ## 环境 34 | 35 | - IntelliJ IDEA 2020.3 36 | 37 | - Mysql 5.7.26 38 | 39 | - Tomcat 9.0.41 40 | 41 | - Maven 3.6.3 42 | 43 | - JDK 1.8 44 | 45 | 46 | ## 运行截图 47 |  48 | 49 |  50 | 51 |  52 | 53 |  54 | 55 |  56 | 57 |  58 | 59 |  60 | -------------------------------------------------------------------------------- /src/main/java/cn/tangtj/clouddisk/security/FormFilterAuthc.java: -------------------------------------------------------------------------------- 1 | package cn.tangtj.clouddisk.security; 2 | 3 | import org.apache.shiro.SecurityUtils; 4 | import org.apache.shiro.authc.AuthenticationException; 5 | import org.apache.shiro.authc.AuthenticationToken; 6 | import org.apache.shiro.authc.UnknownAccountException; 7 | import org.apache.shiro.web.filter.authc.FormAuthenticationFilter; 8 | 9 | import javax.servlet.ServletRequest; 10 | import javax.servlet.ServletResponse; 11 | 12 | public class FormFilterAuthc extends FormAuthenticationFilter { 13 | 14 | @Override 15 | protected boolean onLoginFailure(AuthenticationToken token, AuthenticationException e, ServletRequest request, ServletResponse response) { 16 | String className = e.getClass().getName(); 17 | String message=""; 18 | if (UnknownAccountException.class.getName().equals(className)){ 19 | message = "帐号或密码错误,请重试。"; 20 | }else{ 21 | message = "系统出现点问题,请稍后再试。"; 22 | } 23 | request.setAttribute("message",message); 24 | return true; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/cn/tangtj/clouddisk/entity/vo/Files.java: -------------------------------------------------------------------------------- 1 | package cn.tangtj.clouddisk.entity.vo; 2 | 3 | import cn.tangtj.clouddisk.entity.UploadFile; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * @author tang 9 | */ 10 | public class Files { 11 | 12 | private List${user.username}
35 |可用容量:
文件数量:${files.filesCount} / ${user.fileMaxCount}
54 || # | 65 |文件名 | 66 |文件大小 | 67 |上传日期 | 68 |分享 | 69 |操作 | 70 |
|---|---|---|---|---|---|
| <%=++a%> 77 | | 78 |${fileInfo.fileName} | 79 |${fileInfo.sharing?fileInfo.shareCode:"无分享"} | 82 |83 | 84 | 下载 85 | 删除 87 | | 88 |