Coder Social home page Coder Social logo

duqian42707 / filecenter Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 82 KB

统一文件管理中心,支持MongoDB、HDFS、磁盘、FTP等多种存储方式。

Home Page: http://filecenter.dqv5.com

Java 49.19% HTML 50.81%
filemanager gridfs springboot

filecenter's Introduction

文件中心

统一文件管理中心,支持MongoDB、HDFS、磁盘、FTP等多种存储方式。 对外提供上传下载接口,调用者无需知道文件保存在什么位置。

Get Start

修改配置文件

application.properties

# 修改数据源(选用mysql之外的数据库需要自己添加jdbc驱动包)
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/filecenter?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=111111
# 修改数据库方言
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect

# 修改默认的存储方式:mongo|hdfs|disk|ftp 选其一
filecenter.defaultStoreType=mongo
# 修改需要使用的存储方式:mongo|hdfs|disk|ftp 可选多个,用逗号隔开
spring.profiles.active=mongo,disk,ftp

激活了哪个存储方式,就去修改对应的配置文件。如激活了mongo:

application-mongo.properties

filecenter.mongo.enable=true
# 配置MongoDB的连接方式
filecenter.mongo.host=localhost
filecenter.mongo.port=27017
filecenter.mongo.database=filecenter

启动程序

java -jar filecenter.jar

访问页面 http://localhost:8080

filecenter's People

Contributors

duqian42707 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.