1 Star 0 Fork 0

jialin.zhou / big_event

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 3.62 KB
一键复制 编辑 原始数据 按行查看 历史
jialin.zhou 提交于 2024-03-08 03:07 . update README.md.

big_event 后端代码

介绍

springboot+vue3的一个后台管理系统。里面具体用到了mybatis,mysql,redis,vue3.https://gitee.com/zhoujialin123/big-event.git这是对应的项目前端地址。

软件架构

使用vue作为前端页面展示,后端框架使用springboot,使用mysql作为数据库,redis缓存....

安装教程

  1. 下载项目文件到本地 直接下载压缩包的方式下载至本地 或者 以git clone的方式下载至本地:

git clone https://gitee.com/zhoujialin123/big_event.git

  1. 配置本地mysql数据库 需要再mysql中创建 big_event 数据库,并在其中创建 user,category,article 三张表。注意配置文件 pom.yml 中设置的数据库配置信息
  • port:3306
  • user:root
  • password:1234

需要更改为本地数据库的配置信息。

具体的创建数据库的命令(感谢IT黑马,还有请确保你的数据库支持中文注释 中文编码):

  • create database big_event;
  • use big_event;
create table user (
                      id int unsigned primary key auto_increment comment 'ID',
                      username varchar(20) not null unique comment '用户名',
                      password varchar(32)  comment '密码',
                      nickname varchar(10)  default '' comment '昵称',
                      email varchar(128) default '' comment '邮箱',
                      user_pic varchar(128) default '' comment '头像',
                      create_time datetime not null comment '创建时间',
                      update_time datetime not null comment '修改时间'
) comment '用户表';
create table category(
                         id int unsigned primary key auto_increment comment 'ID',
                         category_name varchar(32) not null comment '分类名称',
                         category_alias varchar(32) not null comment '分类别名',
                         create_user int unsigned not null comment '创建人ID',
                         create_time datetime not null comment '创建时间',
                         update_time datetime not null comment '修改时间',
                         constraint fk_category_user foreign key (create_user) references user(id) -- 外键约束
);
create table article(
                        id int unsigned primary key auto_increment comment 'ID',
                        title varchar(30) not null comment '文章标题',
                        content varchar(10000) not null comment '文章内容',
                        cover_img varchar(128) not null  comment '文章封面',
                        state varchar(3) default '草稿' comment '文章状态: 只能是[已发布] 或者 [草稿]',
                        category_id int unsigned comment '文章分类ID',
                        create_user int unsigned not null comment '创建人ID',
                        create_time datetime not null comment '创建时间',
                        update_time datetime not null comment '修改时间',
                        constraint fk_article_category foreign key (category_id) references category(id),-- 外键约束
                        constraint fk_article_user foreign key (create_user) references user(id) -- 外键约束
)
  1. 下载pom.xml中的对应版本的对应依赖

使用

  • Spring Boot v3.1.3
  • SDK 18.0.2

可以正常运行。

使用说明

  1. 运行BigEventApplication.java文件中的main方法即可。

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
Java
1
https://gitee.com/zhoujialin123/big_event.git
git@gitee.com:zhoujialin123/big_event.git
zhoujialin123
big_event
big_event
master

搜索帮助