首先,新建一个数据库personal_blog创建数据库的表,内容如下:
创建t_article文章详情表:
创建t_authority用户权限表:
创建t_comment文章评论表:
创建t_statistic文章统计表:
创建t_user用户信息表:
创建t_user_authority用户权限关联表:
创建项目personal_blog:
选择以下组件:
配置个人的Maven环境:
添加依赖pom.xml:
<dependencies>
<!--MyBatis分页插件-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.8</version>
</dependency>
<!--String工具包-->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>
<!--Markdown处理表格-->
<dependency>
<groupId>com.atlassian.commonmark</groupId>
<artifactId>commonmark-ext-gfm-tables</artifactId>
<version>0.11