{"id":13607801,"url":"https://github.com/memo012/ac-blog","last_synced_at":"2025-04-12T14:31:17.903Z","repository":{"id":37335670,"uuid":"203326658","full_name":"memo012/ac-blog","owner":"memo012","description":"适合学生搭建的个人博客-从零开始(网站地址：www.lqnb.xyz)","archived":false,"fork":false,"pushed_at":"2022-06-21T01:42:17.000Z","size":4014,"stargazers_count":514,"open_issues_count":11,"forks_count":113,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-07T13:37:41.866Z","etag":null,"topics":["blog","java","mybatis-plus","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/memo012.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-20T07:49:16.000Z","updated_at":"2024-11-01T14:02:58.000Z","dependencies_parsed_at":"2022-08-18T03:55:51.855Z","dependency_job_id":null,"html_url":"https://github.com/memo012/ac-blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memo012%2Fac-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memo012%2Fac-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memo012%2Fac-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memo012%2Fac-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memo012","download_url":"https://codeload.github.com/memo012/ac-blog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581111,"owners_count":21128104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","java","mybatis-plus","springboot"],"created_at":"2024-08-01T19:01:21.744Z","updated_at":"2025-04-12T14:31:14.197Z","avatar_url":"https://github.com/memo012.png","language":"Java","funding_links":[],"categories":["Projects Using MyBatis-Plus"],"sub_categories":["Tutorials"],"readme":"## 适合学生搭建的个人博客：[www.lqnb.xyz](http://www.lqnb.xyz)\r\n## 公众号\r\n希望大家多多关注，里面不定期发放干货\r\n![迈莫公众号](https://img-blog.csdnimg.cn/20200626232429879.jpg#pic_center)\r\n\r\n# 注意:\r\n#### 博客网站后台技术更新,采用**springboot2.1.7+mybatis-plus**\r\n#### **springboot1.x+mybatis**以前版本也在，供大家选择，GitHub地址为:[https://github.com/memo012/people-blog](https://github.com/memo012/people-blog)\r\n##### 坚持不易，各位朋友如果觉得项目还不错的话可以给项目一个 star 吧，也是对我一直更新代码的一种鼓励啦，谢谢各位的支持。\r\n![](https://github.com/memo012/people-blog/blob/master/images/star.png)\r\n## 本地开发  \r\n**第一步：** 把数据库文件导入本地，已上传  \r\n**第二步：** 修改application一系列配置文件(redis配置文件，数据库配置文件)，如不知道application存在位置，可查看下面的项目架构  \r\n**第三步：** 修改腾讯云短信验证配置，位置查看选项目架构(测试阶段不修改无影响)  \r\n**第四步：** 默认账号：15383466854  密码：123456  \r\n**第五步：** 在网页打开： localhost:8080  \r\n## 项目架构\r\n```\r\n|--- pom                                        // acblog配置文件\r\n|--- blog-plus.sql                              // acblog数据库设计\r\n|--- src                                        // 源代码\r\n|--- |--- main                                  // 代码页\r\n          |--- Java                             // 后台代码\r\n             |--- common                        // 公共类\r\n                   |--- config                  // 配置类(以.config后缀结尾)\r\n                   |--- utils                   // 工具类\r\n                        |--- phoneVerify        // 腾讯云短信验证代码\r\n         |--- modules                           // 服务端代码\r\n                  |--- controller               // 表现层\r\n                  |--- dao                      // 持久层\r\n                  |--- entity                   // 实体层\r\n                  |--- service                  // 业务逻辑层\r\n                  |--- shiro                    // shiro配置类\r\n                  |--- AcblogApplication        // spring boot启动类\r\n|--- |--- resources                             // 资源\r\n              |--- mappering                    // 持久层xml文件\r\n              |--- static                       // 静态文件\r\n              |--- templates                    // 前端页面\r\n              |--- application.properties       // 全局配置类\r\n              |--- application.yml              // 全局配置类\r\n              |--- application-dev.yml          // 全局配置类(开发者模式)\r\n              |--- application-test.yml         // 全局配置类(测试者模式)\r\n              |--- application-prod.yml         // 全局配置类(生产者模式)\r\n```\r\n\r\n## 英雄帖\r\n人无完人，项目也是，总存在着隐藏bug，各位前辈有好的想法，可以call我，共同进步。\r\n## 技术能力\r\n  我是一个后台开发人（Java）,对前台不是那么的了解，单单只是能搭出来，效果的话，我已经尽我洪荒之力了，就搭出这个水平，希望不要见怪。\r\n### 项目介绍\r\n1. 博客项目对于初学spring boot的人是个不错的练手项目，即不容易，又不复杂，体验一下做项目的感受。  \r\n2. 该项目为开源项目，代码已上传到我的GitHub上[https://github.com/memo012/ac-blog](https://github.com/memo012/ac-blog)，  欢迎**star**。  \r\n3. 该网站已完成基本功能，后续不断更新修改。  \r\n4. 在文章，评论等处添加缓存，提高性能。  \r\n4. 使用nginx反向代理部署。  \r\n## 技术展示\r\n### 后台：\r\n项目构建：Maven  \r\nweb框架： spring boot  \r\n数据持久层： mybatis-plus  \r\n安全框架： shiro  \r\n搜索引擎： elasticSearch  \r\n缓存：redis  \r\n数据库：Mysql  \r\n### 前台\r\n前台框架：[layui框架](https://www.layui.com/ \"layui框架\") [amazeui框架](https://amazeui.clouddeep.cn/ \"amazeui框架\")  \r\n前端模板： thymeleaf  \r\n### 部署\r\ndocker镜像  \r\n服务器： 腾讯云（centos7）  \r\n\r\n#### 一些细小的框架，就不一一列举了\r\n\r\n## 页面展示\r\n### 关于我页面\r\n![](https://img-blog.csdnimg.cn/20190807130402926.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMDY2MDY2,size_16,color_FFFFFF,t_70)\r\n### 编辑页面\r\n![](https://img-blog.csdnimg.cn/20190807130338920.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMDY2MDY2,size_16,color_FFFFFF,t_70)\r\n### 个人中心\r\n![](https://img-blog.csdnimg.cn/20190807130417457.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMDY2MDY2,size_16,color_FFFFFF,t_70)\r\n### 后台管理界面\r\n![](https://img-blog.csdnimg.cn/20190807130429505.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxMDY2MDY2,size_16,color_FFFFFF,t_70)\r\n## 项目概要\r\n### 项目需求\r\n  博客项目对于spring boot初学者来说，是一个不错的项目体验，从零搭建项目，从无到有，体验项目的完整性，锻炼自己做项目的能力，全面发展。\r\n### 业务设计\r\n#### 打包上传部署\r\n- 使用jar包部署方式，使用守护进程方式部署，`nohup java -jar blog.jar \u003etemp.txt \u0026`\r\n### 总结\r\n#### 开发中遇到难点\r\n- 首先肯定是前端搭建，多亏了我俩个前端大佬，帮助我解决了诸多小儿科问题。\r\n- 使用shiro做安全框架，自己以前也了解过，感觉自己没啥问题，但一用到项目中，傻眼了，只能重新学习了解，发现前后端分离必须使用session管理个人信息，在这儿就耗了好长时间，但功夫不负有心人，victory.\r\n- 打包部署，以前自己只做过部署后台（以war包形式），没真正意思上部署过一个真正项目，认为不太难，往往认为不难的东西，到最终都是花费了大量时间来弄，非常感谢我老大（鑫哥），给我指点了指点，让我少走弯路。\r\n#### 项目优缺点\r\n- 后端代码分工明细，有利于项目的理解和维护。\r\n- 在文章，评论等处添加缓存，提高性能。\r\n- 由于该项目使用两个前台框架，造成代码混乱，但不影响阅读源码。\r\n## 最后想说\r\n\u003e 忍受别人忍受不了的忍受\r\n\u003e 享受别人享受不了的享受\r\n\r\n## 关于网站\r\n- 本人秉着开源风格，已把代码上传到GitHub上（[https://github.com/memo012/people-blog](https://github.com/memo012/ac-blog)），可自行下载学习\r\n- 客官觉得不错的话，给个**star**就行。\r\n\r\n\r\n## 更新记录\r\n### 2019/9/02\r\n添加背景线条和鼠标手势\r\n### 2019/8/20\r\n网站后台技术更新(springboot2.x+mybatis-plus)\r\n### 2019/8/7\r\n网站正式上线\r\n### 2019/7/24\r\nElasticSearch实现搜索\r\n### 2019/7/21\r\nshiro实现登录权限管理\r\n### 2019/7/13\r\n个人中心页面搭建完毕    \r\n浏览博客一系列操作前后台交互完毕\r\n### 2019/7/9跟新\r\n文章详情前后台交互完毕\r\n### 2019/7/7更新\r\n更新和归档页面搭成\r\n## 2019/7/2更新\r\n#### 编辑页面更新\r\n### 2019/7/1更新\r\n页面大改，前台页面重新搭建\r\n### 2019/6/27更新\r\n前端主页面基本搭成\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemo012%2Fac-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemo012%2Fac-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemo012%2Fac-blog/lists"}