# tuchuang **Repository Path**: mikepudding_admin/tuchuang ## Basic Information - **Project Name**: tuchuang - **Description**: No description available - **Primary Language**: Java - **License**: LGPL-2.1 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-09-20 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README <<<<<<< HEAD # tuchuang #### 介绍 {**以下是码云平台说明,您可以替换此简介** 码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} ======= <<<<<<< HEAD ======= <<<<<<< HEAD >>>>>>> first # tuchuang #### 介绍 图床 >>>>>>> fir #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 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) <<<<<<< HEAD 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) ======= <<<<<<< HEAD 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) ======= 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) ======= # Hellohao图床 - 全新响应式UI ![https://img.shields.io/badge/license-LGPL-blue.svg?style=flat-square](https://img.shields.io/badge/license-LGPL-blue.svg?longCache=true&style=flat-square) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/3b39480c887b42f1875c0210817b500f)](https://www.codacy.com/app/hello-hao/Tbed?utm_source=github.com&utm_medium=referral&utm_content=hello-hao/Tbed&utm_campaign=Badge_Grade) ![https://img.shields.io/badge/springboot-2.0.6-orange.svg?style=flat-square](https://img.shields.io/badge/springboot-2.0.4-yellow.svg?longCache=true&style=popout-square) > 这是一个基于多家对象存储源的Spring Boot开源图床项目。 > 本项目使用 Spring Boot 搭建, 针对用户更方便的管理自己的图片管理拓展功能, 支持对接`本地`、`网易`,`阿里`,`又拍`,`七牛`、`腾讯`、`FTP`等多家对象存储. > 后台对用户管理。 > 支持配置多家存储源。 > 用户注册邮箱验证,以及后台配置邮箱服务器。 > 以及图片鉴黄配置等操作。 ## 主要功能支持: - 支持 图片拖拽、截图软件直接(Ctrl+V)和图片URL地址上传。 - 对接本地、网易、阿里、又拍、七牛、腾讯、FTP等各大对象存储平台。 - 支持链接生成二维码。 - 支持开启/关闭API接口。 - URL列表、缩略图。查看原图等功能。 - 图片鉴黄配置(开启后,每天固定时间进行非法图片监测) - 游客、用户的上传管理 - 邮箱注册激活。 - 站点样式设置和上传规则配置等。 主站地址: [http://tc.hellohao.cn/](http://tc.hellohao.cn/) 体验地址(用户名/密码均为admin):[http://129.28.173.126:8088/](http://129.28.173.126:8088/) 文档地址: [http://doc.wwery.com/](http://doc.wwery.com/) 编译包下载: [https://github.com/Hello-hao/Tbed/releases/](https://github.com/Hello-hao/Tbed/releases/) 捐赠列表:[http://doc.wwery.com/#/reward?id=捐赠者名单](http://doc.wwery.com/#/reward?id=捐赠者名单) ## 系统预览 ![Hellohao.png](http://cdn.wwery.com/Hellohao/6071c0825062730.png) ![Hellohao2.png](http://cdn.wwery.com/Hellohao/eeeed0825062727.png) ![图床后台管理.png](http://cdn.wwery.com/Hellohao/c208e0825054822.png) ![图床后台管理2.png](http://cdn.wwery.com/Hellohao/6c7690825054822.png) ![图床后台管理3.png](http://cdn.wwery.com/Hellohao/2a79b0825054822.png) ![图床后台管理4.png](http://cdn.wwery.com/Hellohao/5c1800825054824.png) ## 更新日志 **2019-9-8** - 修复图片url游客上传失败。 - 修复api接口上传总是用户名密码错误问题。 - 修复api接口在win系统上本地上传路径错误问题。 - 优化限制用户批量上传个数的判断逻辑。 ## 运行环境 * JDK 1.8 * MySQL ## 项目编译 (如果你的目的是为了部署自己的图床项目,可以下滑直接用编译包按照部署教程,直接可以部署。) ### 下载项目 ```git git clone https://github.com/Hello-hao/Tbed.git ``` ### 导入项目 使用自己的 Intellij IDEA 或者 Eclipse 均可. ### 导入数据库 创建数据库`picturebed`, 字符集选择 `utf8`, 排序规则选择 `utf8_general_ci`. 导入picturebed.sql ### 配置文件 打开 `application.properties` 修改 `MySQL` 和 `服务器端口` 等连接信息. ```properties #数据库账号 spring.datasource.username=root #数据库密码 spring.datasource.password=root #数据库链接地址 spring.datasource.url=jdbc:mysql://localhost:3306/picturebed?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8 #端口 server.port=8088 #鉴黄周期表达式 下方表达式为每天七点半执行 #不懂请勿乱修改。具体可以参考官方文档http://doc.wwery.com Expression=0 30 04 * * ? #下边的配置项不需要修改。 mybatis.configuration.map-underscore-to-camel-case=true mybatis.mapper-locations=classpath:mapper/*.xml logging.level.cn.hellohao.dao=debug spring.jackson.date-format=yyyy-MM-dd HH:mm:ss spring.jackson.time-zone=GMT+8 spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.type=com.alibaba.druid.pool.DruidDataSource spring.thymeleaf.cache=false multipart.maxFileSize=10240KB multipart.maxRequestSize=10240KB spring.thymeleaf.mode = LEGACYHTML5 spring.http.multipart.location=/data/upload_tmp ``` ### 启动项目 在完成了上述步骤后,找到 TbedApplication 启动类, 启动即可. 初始用户名:admin 初始邮箱:admin 初始密码`admin` 启动后访问地址为:http://localhost:8088 , `8088`就是你配置`server.port=8088`的端口. ## 也可以直接下载编译包部署到你的服务器 > **项目搭建部署教程:** [**http://www.hellohao.cn/?p=201**](http://www.hellohao.cn/?p=201 "点击查看搭建文档") ### 部署 前提是你的服务器必须要有`JDK1.8`环境,和`mysql`数据库。如果你是宝塔环境,就会方便一些,在应用商店安装一个`Tomcat8`因该是自带JDK1.8环境。 把`Tbed.jar`和`application.properties`放到服务器你想存放的目录比如`/home`,注意这两个文件必须要在同一目录下不能分开。 依次运行如下命令: ```shell cd /home java -jar Tbed.jar ``` 然后访问`http://服务器IP:8088/`即可。 注意:上边的`/home`是你的jar包和application.properties文件放的目录。 项目运行起来不要关闭xshell窗口,否则项目将不能访问。可以使用一些后台命令把项目锁定后台。如`nohup`或`screen` ### 技术选型 #### 前端 * 首页框架: [Bootstrap](https://www.bootcss.com/) * 前端框架: [Layui](https://www.layui.com/) ### 声明 本程序免费提供给个人用户使用,未经允许不得作为盈利商业使用,如果你想商用,请先与我们联系,分享你的利益。 ### 反馈交流 **如果你遇到BUG可以去我的博客反馈** Hellohao博客: [http://www.hellohao.cn/](http://www.hellohao.cn/) 欢迎加入Hellohao开发者交流群,群聊号码:**864800972** ### 捐赠开发者 **如果你也支持Hellohao图床,可以请我喝杯咖啡。我会持续更新Hellohao图床** ![](http://cdn.wwery.com/Hellohao/df2710722111702.jpg) >>>>>>> first commit >>>>>>> first >>>>>>> fir