# walter-blog **Repository Path**: barry200890/walter-blog ## Basic Information - **Project Name**: walter-blog - **Description**: 基于VUE和Java的开源小博客。记忆旅途,美好生活点滴记录。 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: https://www.jylt.cc - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2022-11-08 - **Last Updated**: 2022-11-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # walter-blog #### 介绍 该项目是一个博客系统,官网地址:[记忆旅途](http://www.jylt.cc),用来发表个人日常心得体会、学习工作中问题解决思路等,通过markdown编辑器进行博客的编辑,能够方便快速的记录自己的想法。欢迎各位客官体验。 #### 软件架构 ##### 前端页面 ###### 目录 前端使用vue进行开发,项目源码在front目录下 ##### 后台架构 ###### 技术描述 - 框架使用SpringBoot 2.3.2.RELEASE - 数据库使用MySQL 8.0 - ORM框架使用的是MyBatis - 文件存储使用阿里云OSS。 ###### 目录功能 - blog目录是网站后台的启动模块和主要功能模块; - base目录是网站后台数据库实体类、mapper文件及一些公共模块 #### 安装教程 - 安装JDK 1.8 - [JDK下载地址:https://registry.npmmirror.com/binary.html?path=node/v14.16.0/](https://registry.npmmirror.com/binary.html?path=node/v14.16.0/) - 安装Maven 3.6.3 - [Maven下载地址:https://maven.apache.org/download.cgi](https://maven.apache.org/download.cgi) - 安装MySQL 8.0 - 安装Node.js和Npm包管理器 - [Node.js下载地址:https://registry.npmmirror.com/binary.html?path=node/v14.16.0/](https://registry.npmmirror.com/binary.html?path=node/v14.16.0/) #### 使用说明 ##### 启动前端 - 进入front -> pc-web目录 - npm install - npm run dev ##### 启动后台 - 进入walter-blog目录,运行mvn clean install - 待所有依赖下载打包完成后,进入启动类com.walter.blog.BlogApplication,直接运行该类中的main方法即可 - 接口文档地址:http://localhost:8080/doc.html ##### 关于Linux环境word转pdf乱码问题 **原因是由于Linux缺少默认字体导致,需要将使用到的字体从Windows复制到Linux字体库中** 方法如下: - 从Windows字体目录C:\\Windows\Fonts中将中文字体复制到Linux字体目录/usr/share/font/win中 - 执行命令:`fc-cache -fv`刷新Linux字体缓存 - 重启博客服务器即可 ##### 关于`Config`类配置(数据库对应`config`表) - 邮箱配置格式 ```json { "username": "邮箱", "password": "邮箱密码" } ``` - 阿里云oss配置格式 **其中host是访问文章中的图片域名** ```json { "endpoint": "", "bucketName": "", "accessKeyId": "", "accessKeySecret": "", "host": "https://***.***/" } ``` - redis配置格式 ```json { "host": "", "port": "", "password": "" } ``` - Gitee第三方登录配置格式 ```json { "clientId": "", "clientSecret": "", "redirectUri" : "" } ``` #### 更新日志 最新日志请查看:[更新日志](https://www.jylt.cc/#/detail?id=f49adef46cdf2b769d2173fb0dcd20be) #### 公众号 ![输入图片说明](https://oss.jylt.cc/%E5%85%AC%E4%BC%97%E5%8F%B7%E7%B4%A0%E6%9D%90/%E6%89%AB%E7%A0%81_%E6%90%9C%E7%B4%A2%E8%81%94%E5%90%88%E4%BC%A0%E6%92%AD%E6%A0%B7%E5%BC%8F-%E7%99%BD%E8%89%B2%E7%89%88.png)