个人博客项目
文章平均质量分 63
大头0~0
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
个人博客项目
文章目录个人博客项目一、项目技术二、前端页面三、数据库设计个人博客项目一、项目技术工具名称开发工具IDEA语言JDK1.8、HTML、css、js模板引擎Themleaf数据库Mysql8.0项目框架SpringBoot、SpringSecurityORMMybatis项目构建Maven二、前端页面1、本项目前端素材采用mrbbbbbb博主分享的素材2、采用Thymeleaf模板引擎Thymeleaf是一个现代服务原创 2021-03-03 23:01:37 · 352 阅读 · 0 评论 -
整合缓存中间件redis(个人博客)
整合缓存中间件redis(个人博客)1、pom.xml依赖导入 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> <version>1.4.7.RELEASE</version> </dependency> <d原创 2021-03-03 22:58:03 · 284 阅读 · 1 评论 -
博客编写功能设计(个人博客)
博客编写功能设计(个人博客)一、编写dao层二、绑定mapper配置文件三、编写service层四、编写controller层@RequestMapping("/admin/toWrite")public String toWrite(Model model){ List<Category> categories = categoryService.allCategories(); model.addAttribute("types",categories);原创 2021-03-03 22:42:19 · 460 阅读 · 1 评论 -
导航栏用户模块设计(个人博客)
导航栏用户模块设计(个人博客)一、修改前端页面利用sec:authorize="isAuthenticated()"实现 <div class="right m-item m-mobile-hide menu" sec:authorize="isAuthenticated()"> <div class="ui dropdown item"> <div class="text"><img class="ui a原创 2021-02-28 11:21:08 · 747 阅读 · 0 评论 -
主页分类模块设计(个人博客)
主页分类模块设计(个人博客)一、编写dao层二、绑定mapper配置文件三、编写service层四、编写controller层 @RequestMapping("/toFen") public String toWen(@RequestParam(value = "pageNum",defaultValue = "1") Integer pageNum, Model model){ List<Category> categories = categorySe原创 2021-02-28 11:20:38 · 517 阅读 · 0 评论 -
详细页评论功能实现(个人博客)
详细页评论功能实现(个人博客)一、编写dao层@Mapperpublic interface CommentMapper { int deleteByPrimaryKey(Long id); @Insert("insert into comment(user_id,article_id,content,created_at)" + " values(#{userId},#{articleId},#{content},#{createdAt})") i原创 2021-02-28 11:19:59 · 692 阅读 · 0 评论 -
首页模块设计(个人博客)
首页模块设计(个人博客)一、编写dao层二、绑定mapper配置文件三、编写service层四、编写controller层@RequestMapping("/")public String index(@RequestParam(value = "pageNum",defaultValue = "1") Integer pageNum, Model model) { PageHelper.startPage(pageNum,4); List<Article> ar原创 2021-02-28 11:19:33 · 812 阅读 · 0 评论 -
后台用户管理功能设计(个人博客)
后台用户管理功能设计(个人博客)1、编写dao层@Mapperpublic interface UserMapper { @Select("select * from user where username=#{username}") User getByName(String username); @Update("update user set password = #{password},nickname = #{nickname},avatar = #{avatar原创 2021-02-28 11:18:33 · 841 阅读 · 0 评论 -
后台分类管理功能设计(个人博客)
后台分类管理功能设计1、编写dao层@Mapperpublic interface CategoryMapper { public List<Category> allCategories(); @Delete("delete from category where id = #{id}") public int deleteCategory(int id); @Update("update category set status_id = #{sta原创 2021-02-28 11:17:44 · 1547 阅读 · 0 评论 -
后台文章管理功能设计(个人博客)
后台文章管理功能设计1、编写dao层@Mapperpublic interface ArticleMapper { int deleteById(Integer id); int insert(Article record); Article selectByPrimaryKey(Long id); List<Article> selectAll(); List<Article> queryArticlesByUserI原创 2021-02-28 11:17:14 · 594 阅读 · 0 评论 -
后台登陆功能设计(个人博客)
后台登陆功能设计一、自定义登陆页面<!DOCTYPE html><html lang="en" xmlns:th="http://www.thymeleaf.org"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial原创 2021-02-28 11:16:14 · 311 阅读 · 0 评论 -
数据库设计(个人博客)
数据库设计(个人博客)一、表结构用户表:记录用户信息数据项变量名类型编号idBIGINT用户名usernameVARCHAR密码passwordVARCHAR个性名称nicknameVARCHAR头像链接avatarVARCHAR类型表:记录文章类型的信息数据项变量名类型编号idBIGINT类型编号statusIdBIGINT名称nameVARCHAR详情detai原创 2021-02-28 11:13:07 · 1118 阅读 · 0 评论 -
环境搭建(个人博客)
环境搭建(个人博客)一、整理目录二、导入依赖使用maven的优点:1、原来的项目中需要的jar包必须手动“复制”、”粘贴” 到WEB-INF/lib 项目下,而借助Maven,可以将jar包仅仅保存在“仓库”中,有需要使用的工程只需要“引用”这个文件,并不需要重复复制到工程中。2、原来的项目中所需要的jar包都是提前下载好的,而Maven在联网状态下会自动下载所需要的jar包。首先在本地仓库中找,找不到就在网上进行下载。3、原来的项目中一个jar包所依赖的其他jar包必须手动导进来,而Mave原创 2021-02-28 11:11:06 · 166 阅读 · 0 评论
分享