# 简单文件服务器 **Repository Path**: langdagou/tools ## Basic Information - **Project Name**: 简单文件服务器 - **Description**: 一个简单文件服务器,基于spring boot实现文件上传返回文件地址 - **Primary Language**: Java - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2020-08-25 - **Last Updated**: 2023-07-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 工具 #### 介绍 简易工具。无需任何配置,打包之后直接跑起来就能用了。[接口文档地址](https://docs.apipost.cn/view/a5565b993981b0f1) #### 软件架构 软件架构说明 #### 使用说明 此服务有三个可配置项 1. 文件保存路径(默认路径为jar包所在路径) 2. 资源解析路径(默认为FileServer) 3. 访问文件域名或ip(默认为服务器ip,主要配置为服务器域名) yml相关配置如下 ``` File: upload: # windows dir: C:\upload # 访问路径 path: langdagou # dev url: http://172.16.0.241 # Linux # dir: /upload # 访问路径 # path: island # dev # url: http://172.16.0.241 # 可选择不配置 # dir: # path: # url: ``` 如果已经打包,启动架包的时候可以动态设置配置内容 windows java -jar 架包名.jar --File.upload.dir=C:\upload --File.upload.path=island --File.upload.url=http://www.XXX.cn linux nohup java -jar 架包名.jar --File.upload.dir=/File-Server --File.upload.path=file --File.upload.url=http://www.XXX.cn & 可以只配置其中的一项或几项 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)