You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
## 基于Springboot和Thymeleaf的博客项目
|
|
|
|
|
|
|
|
- 后端框架: `SpringBoot`
|
|
|
|
- 模板引擎:`Thymeleaf`
|
|
|
|
- 数据库: `MySQL8.0`
|
|
|
|
- 缓存:`echache`
|
|
|
|
- `ORM`层:`SpringBoot-JPA`
|
|
|
|
- 前端UI框架:`BootStrap3`
|
|
|
|
- 其他
|
|
|
|
- 字体图标:`fontawesome4.7`
|
|
|
|
- 解析Markdown:`CommonMark`
|
|
|
|
- 邮件:`SpringBootMail`
|
|
|
|
- 展示管理页面的数据: `BootStrapTable`
|
|
|
|
|
|
|
|
### 快速使用
|
|
|
|
|
|
|
|
注意在`application.xml`中修改为自己的数据库名,启动项目后会自动建表,后台管理默认账户:`admin`,密码:`admin123`,配置文件中只保存加密后的密码,为了您的数据安全,建议将密码使用测试类进行加密。
|
|
|
|
|
|
|
|
打包后会生成`jar`包和一份拷贝后的`application.xml`文件,将这两个文件一起上传到服务器
|
|
|
|
|
|
|
|
后台启动项目:(不适用jar包内的配置文件)
|
|
|
|
|
|
|
|
```sh
|
|
|
|
nohup java -jar SpringBootProject-1.0-SNAPSHOT.jar --spring.local.config=application.xml &
|
|
|
|
```
|
|
|
|
|
|
|
|
本地访问:
|
|
|
|
|
|
|
|
```
|
|
|
|
http://localhost:your_port
|
|
|
|
```
|
|
|
|
|
|
|
|
### 后续改进
|
|
|
|
|
|
|
|
- 搜索功能引入`ElasticSearch`
|
|
|
|
- 导航栏设置二级导航
|
|
|
|
- markdown解析再升级
|
|
|
|
- ...
|
|
|
|
|
|
|
|
### 前台展示
|
|
|
|
|
|
|
|
##### 首页
|
|
|
|
|
|
|
|
![image-20221025173727912](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025173727912.png)
|
|
|
|
|
|
|
|
##### 分类云
|
|
|
|
|
|
|
|
![image-20221025173813575](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025173813575.png)
|
|
|
|
|
|
|
|
##### 标签云
|
|
|
|
|
|
|
|
![image-20221025173853460](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025173853460.png)
|
|
|
|
|
|
|
|
##### 详情页
|
|
|
|
|
|
|
|
![image-20221025173939775](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025173939775.png)
|
|
|
|
|
|
|
|
### 后台管理
|
|
|
|
|
|
|
|
##### 登录页面
|
|
|
|
|
|
|
|
![image-20221025174047883](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025174047883.png)
|
|
|
|
|
|
|
|
##### 控制台
|
|
|
|
|
|
|
|
![image-20221025174110460](C:\Users\15270\AppData\Roaming\Typora\typora-user-images\image-20221025174110460.png)
|
|
|
|
|
|
|
|
##### 文章管理
|
|
|
|
|
|
|
|
![image-20221025174146624](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025174146624.png)
|
|
|
|
|
|
|
|
##### 分类管理
|
|
|
|
|
|
|
|
![image-20221025174207728](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025174207728.png)
|
|
|
|
|
|
|
|
##### 轮播图管理
|
|
|
|
|
|
|
|
![image-20221025174224504](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025174224504.png)
|
|
|
|
|
|
|
|
##### 导航管理
|
|
|
|
|
|
|
|
![image-20221025174252367](https://cdn.jsdelivr.net/gh/JokerZhang66/images@master//img/image-20221025174252367.png)
|