mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -31,23 +31,31 @@ git clone https://github.com/Hello-hao/Tbed.git
|
||||
|
||||
### 导入数据库
|
||||
|
||||
创建数据库, 字符集选择 `utf8`, 排序规则选择 `utf8_general_ci`.
|
||||
创建数据库`picturebed`, 字符集选择 `utf8`, 排序规则选择 `utf8_general_ci`.
|
||||
导入picturebed.sql
|
||||
|
||||
### 配置文件
|
||||
|
||||
打开 `application.properties` 修改 `MySQL` 和 `服务器端口` 等连接信息.
|
||||
|
||||
```properties
|
||||
server.port=8088
|
||||
|
||||
#数据库账号
|
||||
spring.datasource.username=root
|
||||
#数据库密码
|
||||
spring.datasource.password=root
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/picturebed?useUnicode=true&characterEncoding=utf8
|
||||
#数据库地址
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/picturebed?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
|
||||
#端口
|
||||
server.port=8088
|
||||
```
|
||||
|
||||
### 启动项目
|
||||
在完成了上述步骤后,找到 TbedApplication 启动类, 启动即可.
|
||||
|
||||
初始用户名:admin
|
||||
初始邮箱:admin
|
||||
初始密码`admin`
|
||||
|
||||
启动后访问地址为:http://localhost:8088 , `8088`就是你配置`server.port=8088`的端口.
|
||||
|
||||
## 系统预览
|
||||
@@ -58,6 +66,9 @@ spring.datasource.url=jdbc:mysql://localhost:3306/picturebed?useUnicode=true&cha
|
||||
|
||||

|
||||
|
||||
### 说明
|
||||
如果你不会编译本程序可以去我的博客搜`图床`,下载编译后jar包直接部署即可。
|
||||
|
||||
|
||||
### 技术选型
|
||||
|
||||
|
||||
Reference in New Issue
Block a user