Coder Social home page Coder Social logo

file-tree's Introduction

使用关系型数据库模拟文件树操作,假设文件树内不包含文件

应用场景:

大部分需要在关系型数据库中存储树状结构的需求,都可以通过改造本工程实现

支持功能:

  • 添加
  • 删除
  • 移动
  • 复制

实现原理:闭包表

参考链接:https://www.jianshu.com/p/951b742fd137

运行:

数据库结构备份在db文件夹中
功能测试在test文件夹中,列出了大部分功能的测试
添加Controller,集成前端界面之后可以实现模拟一个文件浏览器
数据库链接在application.yml中编辑

环境:

jdk8,mysql57

文件树结构:

文件树

file-tree's People

Stargazers

 avatar lxw avatar  avatar  avatar  avatar slliver avatar nightrain avatar yancy avatar

Watchers

nightrain avatar Qing Li avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.