文章目录
1 前言
Hi,大家好,学长今天向大家介绍 一个java web项目
基于SSM的新闻管理系统
大家可用于 毕业设计
适合专业:计算机科学与工程、软件工程、物联网、信管、数媒、大数据、等
2 简介
想了解一下各端项目的同志可以看看,空余时间写了个类似新闻发布系统的小项目,本项目包含前端、后端、移动端三端应用,这里和大家交流交流,有兴趣的可以看看,欢迎讨论。
2.1 JaveWeb新闻管理系统
本项目基于SSM架构,包含新闻发布系统常规功能,同时,本项目包含前端、后端、移动端三端应用,
相当于一套简陋而全面的各端项目集合。
2.2 功能介绍
2.2.1 移动端app(Android)
基于MVP架构,技术栈:MVP+Material+retrofit2+Rx…
主要模块:
- a.登录/注册
- b. 发帖
- c. 回复/点赞
- d. 搜索功能
- e.个人中心
- f. 版本更新
- g.收藏
- h. 其他
预览:
2.2.2 web前端项目
基于vue.js,技术栈:vue+vuex+vue Router+scss
主要模块:
- a. 登录/注册
- b. 发帖
- c. 回复/点赞
- d.搜索
- e.公告面板
- f. 发一条说说
- g. 个人中心 h.其他 预览:
2.2.3 管理后台
基于vue.js,技术栈:vue+vuex+vue Router+element
主要模块:
- a. 用户管理
- b. 帖子管理
- c. 评论管理
- d. 公告面板/说说管理
- e. banner管理
- f 禁言功能
- g. 图片管理
- h. 用户权限
- i. 管理员权限
- j. 其他
预览:
3. 项目部署
版本
IED IntelliJ IDEA
tomcat 7.0.91
maven 3.5.4
jdk 1.8.0
mysql 5.7.19
spring 4.1.3
mybatis 3.2.8
os CentOs 6.5
nginx 1.12.2
4. 说明
1.mysql数据库,见项目根目录wcdog.sql,需手动导入,可自行添加数据
2.注意tomcat端口,管理系统和H5前端baseUrl均为8081端口,也可以自行修改。
3.使用管理后台(wcdog-manager)新增joke的时候,注意使用的是y_user表中的user_id,所以需要在y_user表中有一个和y_admin相同user_id的用户,当然,也可以在adminMapper中新增addJoke方法;
5 数据库配置
## User表
create table y_user(
id int(11) unsigned not null auto_increment,
user_id varchar(18) not null,
name varchar(20) not null unique,
password varchar(20) not null,
nickname varchar(20) not null,
user_icon varchar(255) DEFAULT NULL,
talk varchar(300),
address varchar(100),
token varchar(100),
regist_time datetime,
last_login_time datetime,
banned tinyint(1)DEFAULT 0,
primary key(id)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## joke表
create table y_joke(
id int(11) unsigned not null auto_increment,
joke_id varchar(18) not null,
joke_user_id varchar(18) not null,
title varchar(255) not null,
content mediumtext,
contentHtml mediumtext,
cover_img varchar(255) DEFAULT NULL,
post_time datetime DEFAULT NULL,
art_like_count int(5) DEFAULT '0',
art_comment_count int(5) DEFAULT '0',
category varchar(4) DEFAULT NULL,
tags varchar(100) DEFAULT NULL,
primary key (id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## joke点赞表
create table y_joke_like(
id int(11) unsigned not null auto_increment,
joke_id varchar(18) not null,
joke_user_id varchar(18),
approval_time datetime DEFAULT NULL,
primary key (id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## joke评论表
create table y_joke_comment(
id int(11) unsigned not null auto_increment,
comment_id varchar(18) not null,
joke_id varchar(18),
comment_user_id varchar(18),
comment_details mediumtext,
comment_date datetime DEFAULT NULL,
primary key (id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## 图片
create table y_image(
id int(11) unsigned not null auto_increment,
user_id varchar(18) not null,
imgId varchar(18),
imgUrl varchar(255),
pageViews int(6),
size_type int(1),
upTime datetime DEFAULT NULL,
primary key (id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## 首页轮播
create table y_banner(
id int(11) unsigned not null auto_increment,
user_id varchar(18) not null,
articel_id varchar(18) not null,
title varchar(255),
img_url varchar(255),
article_url varchar(255),
pageViews int(6),
up_time datetime DEFAULT NULL,
primary key (id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## 流量统计表
create table y_wcdog_flow(
id int(11) unsigned not null auto_increment,
classic_count int(5) DEFAULT '0',
yellow_count int(5) DEFAULT '0',
mind_count int(5) DEFAULT '0',
shite_count int(5) DEFAULT '0',
cold_count int(5) DEFAULT '0',
all_user_count int(5) DEFAULT '0',
all_admin_count int(5) DEFAULT '0',
all_joke_count int(5) DEFAULT '0',
all_comment_count int(5) DEFAULT '0',
all_thumb_count int(5) DEFAULT '0',
post_time datetime DEFAULT NULL,
primary key (id)
)ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## Admin表
create table y_admin(
id int(11) unsigned not null auto_increment,
name varchar(20) not null unique,
password varchar(20) not null,
nickname varchar(20) not null,
admin_id varchar(18) not null,
admin_icon varchar(255) DEFAULT NULL,
permisson varchar(255) DEFAULT NULL,
token varchar(100),
regist_time datetime,
last_login_time datetime,
primary key(id)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## 说说列表
create table y_talk_list(
id int(11) unsigned not null auto_increment,
talk_id varchar(18) not null,
user_id varchar(18) DEFAULT NULL,
talk varchar(100),
send_time datetime,
primary key(id)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## 公告栏表
create table y_plank(
id int(11) unsigned not null auto_increment,
plank_id varchar(18) not null,
content varchar(300) DEFAULT NULL,
send_time datetime,
primary key(id)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
## apk版本
create table y_apk(
id int(11) unsigned not null auto_increment,
apk_id varchar(18) not null,
apk_version varchar(20)not null,
apk_url varchar(255)not null,
apk_code int(5)not null,
content varchar(300) not null,
send_time datetime,
primary key(id)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
6 最后