博客系统管理页面以及用户页面

本文档详细介绍了使用Springboot+JPA+Thymeleaf+MySQL技术栈构建的个人博客系统,包括系统架构、模块分析、数据库设计和页面功能展示。系统分为管理员后台和用户端,具备博客管理、评论、标签、类型和用户等功能。通过本次项目,作者总结了Java学习经验并体验到团队协作的重要性。
摘要由CSDN通过智能技术生成

目录

 一、系统架构

二、模块分析

三、项目介绍

五、首页页面

1.博客储存

2.评论

3.标签

4.类型

5.用户

六、数据库设计

七、页面效果及功能展示图

         1.登录页面

2.分类页面

3.标签分类

4.归档页面

来吧展示!!!

管理员后台页面

管理员后台分类页面

管理员后台标签页面

八、总结:


 一、系统架构

  • 基于Springboot+JPA+Thymeleaf+MySQL的个人博客系统

二、模块分析

  • 本系统主要针对发博客而设计,其系统内有管理员端和用户端。基于Springboot+JPA+Thymeleaf+MySQL的个人博客系统。
     

三、项目介绍

本项目主要开发管理员管理页面(Admin)、博客分类页面、博客发表页面、标签页面、最新推荐页面、设备管理分类页面以及退出系统等功能

四、项目结构

五、首页页面

  1.博客储存

public interface BlogRepository extends JpaRepository<Blog,Long>, JpaSpecificationExecutor<Blog> {

    @Query("select b from t_blog b where b.recommend=true ")
    List<Blog> findTop(Pageable pageable);


    @Query("select b from t_blog b where b.title like ?1 or b.content like ?1")
    Page<Blog> findByQuery(String query,Pageable pageable);


    @Transactional
    @Modifying
    @Query("update t_blog b set b.views=b.views+1 where b.id=?1")
    int updateViews(Long id);
 @Query("select function('date_format',b.updateTime,'%Y') as year from t_blog b group by function('date_format',b.updateTime,'%Y') " +
            "order by function('date_format',b.updateTime,'%Y') desc ")
    List<String> findGroupYear();


    @Query("select b from t_blog b where function('date_format',b.updateTime,'%Y')= ?1")
    List<Blog> findByYear(String year);

2.评论


    @Id
    @GeneratedValue
    private Long id;
    private String nickname;
    private String email;
    private String content;

    @NestedConfigurationProperty
    private String avatar;
    @Temporal(TemporalType.TIMESTAMP)
    private Date createTime;

    @ManyToOne
    private Blog blog;

    @OneToMany(mappedBy = "parentComment")
    private List<Comment> replyComments = new ArrayList<>();

    @ManyToOne
    private Comment parentComment;

    private boolean adminComment;

    public Comment() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值