Skip to content
This repository has been archived by the owner on Nov 13, 2020. It is now read-only.

Commit

Permalink
使用 Apache Maven 重构项目,并切换 SQLite 作为后端微数据库
Browse files Browse the repository at this point in the history
Signed-off-by: Dragon1573 <[email protected]>
  • Loading branch information
Dragon1573 committed Nov 11, 2020
0 parents commit feaf6c6
Show file tree
Hide file tree
Showing 66 changed files with 6,277 additions and 0 deletions.
98 changes: 98 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Created by https://www.toptal.com/developers/gitignore/api/java-web,maven,intellij+iml
# Edit at https://www.toptal.com/developers/gitignore?templates=java-web,maven,intellij+iml

### Intellij+iml ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
.idea/artifacts
.idea/compiler.xml
.idea/jarRepositories.xml
.idea/modules.xml
.idea/*.iml
.idea/modules
*.iml
*.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### Intellij+iml Patch ###
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
modules.xml
.idea/misc.xml

### Java-Web ###
## ignoring target file
target/

### Maven ###
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# https://github.com/takari/maven-wrapper#usage-without-binary-jar
.mvn/wrapper/maven-wrapper.jar

# End of https://www.toptal.com/developers/gitignore/api/java-web,maven,intellij+iml
Empty file added .idea/.gitignore
Empty file.
792 changes: 792 additions & 0 deletions .idea/codeStyles/Project.xml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/groovyc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 74 additions & 0 deletions .idea/runConfigurations/Tomcat_9_0_36__Local_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions .idea/saveactions_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/sbt.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/sqldialects.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Dragon1573

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 2019~2020年第1学期JSP课程设计

[![GitHub License](https://img.shields.io/github/license/Dragon1573/JSP_Design)](https://github.com/Dragon1573/JSP_Design)
[![https://img.shields.io/badge/CSDN-%40Legend__1949-red?style=social](https://img.shields.io/badge/CSDN-%40Legend__1949-red?style=social)](https://me.csdn.net/u011367208)

## 简介

&emsp;&emsp;本项目是一个 JavaWeb 网页应用程序,参考 GitHub 制作一个可用于局域网内的小型代码托管平台。

&emsp;&emsp;此平台能够实现代码仓库的上传与下载,并通过技术手段模拟目录树浏览效果。它还提供讨论区,提供评论的新建与删除。

## 目录

- [系统要求](#系统要求)
- [项目需求](#项目需求)
- [导入及配置说明](#导入及配置说明)

## 系统要求

- [Java SE Development Kit 14 及后续版本](https://www.oracle.com/java/technologies/javase-downloads.html)
- [Apache Maven 3.x](https://maven.apache.org/download.cgi)
- [Apache Tomcat 9.0.x 及后续版本](https://tomcat.apache.org/download-90.cgi)

## 项目需求

1. 代码仓库

- 每个用户可以创建任意个代码仓库,每个仓库拥有独立的目录树。
- 能够将文件上传至指定目录,当路径不存在时,可递归创建目录。
- 可以删除指定目录下的文件,当指定对象为目录时,可以递归删除目录。
- 未登录的用户可以自由访问任意仓库并进行文件下载,但无法进行上传与删除操作。

2. 评论管理

- 未登录的访客用户可以自由浏览评论及其详情页。
- 任何已登录用户可以发表评论,或删除由自己发送的评论。

3. 用户管理

- 权限控制采用类似 Linux 的细粒度控制方法:
- 每个用户对其发布的任何数据拥有超级权限;
- 每个用户对其他数据拥有访客权限;
- 未登录用户只拥有访客权限。
- 允许未登录用户注册账户或忘记密码。
- 允许已登录用户:
- 修改登录密码
- 启用/修改密保(包括但不限于手机号码、电子邮箱地址、密码保护问题)
- 修改登录名

## 导入及配置说明

&emsp;&emsp;本项目已于2020年11月9日重构为`Apache Maven`项目,兼容`JetBrains IntelliJ IDEA``Eclipse IDE`以及其他支持`Maven`的集成开发环境。

&emsp;&emsp;以下步骤以`JetBrains IntelliJ IDEA`为例:

1. 将本项目整体克隆至本地(此处使用`${PROJECT_ROOT}`表示)
2.`IntelliJ IDEA`主界面上,打开并以`Maven`项目的形式导入本项目
3. 编辑运行配置,将『应用程序服务器』切换为您本地使用的`Apache Tomcat`服务器
3. 启动服务器,访问[主页 - 佛大云服务](http://localhost/JSP_Design)
Loading

0 comments on commit feaf6c6

Please sign in to comment.