基于java的apriori算法的电影影讯推荐系统的设计与实现

基于java的apriori算法的电影影讯推荐系统的设计与实现
基于java的apriori算法的电影影讯推荐系统的设计与实现登录注册界面

基于java的apriori算法的电影影讯推荐系统的设计与实现mysql数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '超级管理员账号',
	password varchar(100) comment '超级管理员密码'
) comment '超级管理员';
insert into t_admin(username,password) values('admin','123456');

用户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	name varchar(100) comment '姓名',
	phone varchar(100) comment '手机',
	sex varchar(100) comment '性别',
	age varchar(100) comment '年龄',
	address varchar(100) comment '住址',
	idcard varchar(100) comment '身份证',
	insertDate datetime comment '入库日期',
	headPic varchar(100) comment '头像',
	ispl varchar(100) comment '评论权限',
	mb1 varchar(100) comment '密保1',
	mb2 varchar(100) comment '密保2',
	mb3 varchar(100) comment '密保3'
) comment '用户';

轮播图表创建语句如下:


create table t_lbt(
	id int primary key auto_increment comment '主键',
	pic varchar(100) comment '图片'
) comment '轮播图';

网站说明表创建语句如下:


create table t_ltsm(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '网站说明'
) comment '网站说明';

电影表创建语句如下:


create table t_movice(
	id int primary key auto_increment comment '主键',
	typesId int comment '分类',
	title varchar(100) comment '名称',
	pic varchar(100) comment '图片',
	content varchar(100) comment '详细内容',
	videoUrl varchar(100) comment '电影连接',
	updateDate datetime comment '上映时间',
	zy varchar(100) comment '主演',
	dy varchar(100) comment '导演',
	zan int comment '赞',
	status varchar(100) comment '状态'
) comment '电影';

电影查看记录表创建语句如下:


create table t_movice_click(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	moviceId int comment '电影',
	insertDate datetime comment '日期'
) comment '电影查看记录';

评论表创建语句如下:


create table t_pinglun(
	id int primary key auto_increment comment '主键',
	moviceId int comment '评论信息',
	customerId int comment '评论人',
	content varchar(100) comment '评论内容',
	insertDate datetime comment '评论日期'
) comment '评论';

分类表创建语句如下:


create table t_types(
	id int primary key auto_increment comment '主键',
	typesName varchar(100) comment '分类'
) comment '分类';

基于java的apriori算法的电影影讯推荐系统的设计与实现oracle数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id integer,
	username varchar(100),
	password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超级管理员字段加注释
comment on column t_admin.id is '主键';
comment on column t_admin.username is '超级管理员账号';
comment on column t_admin.password is '超级管理员密码';
--超级管理员表加注释
comment on table t_admin is '超级管理员';

用户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	phone varchar(100),
	sex varchar(100),
	age varchar(100),
	address varchar(100),
	idcard varchar(100),
	insertDate datetime,
	headPic varchar(100),
	ispl varchar(100),
	mb1 varchar(100),
	mb2 varchar(100),
	mb3 varchar(100)
);
--用户字段加注释
comment on column t_customer.id is '主键';
comment on column t_customer.username is '账号';
comment on column t_customer.password is '密码';
comment on column t_customer.name is '姓名';
comment on column t_customer.phone is '手机';
comment on column t_customer.sex is '性别';
comment on column t_customer.age is '年龄';
comment on column t_customer.address is '住址';
comment on column t_customer.idcard is '身份证';
comment on column t_customer.insertDate is '入库日期';
comment on column t_customer.headPic is '头像';
comment on column t_customer.ispl is '评论权限';
comment on column t_customer.mb1 is '密保1';
comment on column t_customer.mb2 is '密保2';
comment on column t_customer.mb3 is '密保3';
--用户表加注释
comment on table t_customer is '用户';

轮播图表创建语句如下:


create table t_lbt(
	id integer,
	pic varchar(100)
);
--轮播图字段加注释
comment on column t_lbt.id is '主键';
comment on column t_lbt.pic is '图片';
--轮播图表加注释
comment on table t_lbt is '轮播图';

网站说明表创建语句如下:


create table t_ltsm(
	id integer,
	title varchar(100)
);
--网站说明字段加注释
comment on column t_ltsm.id is '主键';
comment on column t_ltsm.title is '网站说明';
--网站说明表加注释
comment on table t_ltsm is '网站说明';

电影表创建语句如下:


create table t_movice(
	id integer,
	typesId int,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	videoUrl varchar(100),
	updateDate datetime,
	zy varchar(100),
	dy varchar(100),
	zan int,
	status varchar(100)
);
--电影字段加注释
comment on column t_movice.id is '主键';
comment on column t_movice.typesId is '分类';
comment on column t_movice.title is '名称';
comment on column t_movice.pic is '图片';
comment on column t_movice.content is '详细内容';
comment on column t_movice.videoUrl is '电影连接';
comment on column t_movice.updateDate is '上映时间';
comment on column t_movice.zy is '主演';
comment on column t_movice.dy is '导演';
comment on column t_movice.zan is '赞';
comment on column t_movice.status is '状态';
--电影表加注释
comment on table t_movice is '电影';

电影查看记录表创建语句如下:


create table t_movice_click(
	id integer,
	customerId int,
	moviceId int,
	insertDate datetime
);
--电影查看记录字段加注释
comment on column t_movice_click.id is '主键';
comment on column t_movice_click.customerId is '用户';
comment on column t_movice_click.moviceId is '电影';
comment on column t_movice_click.insertDate is '日期';
--电影查看记录表加注释
comment on table t_movice_click is '电影查看记录';

评论表创建语句如下:


create table t_pinglun(
	id integer,
	moviceId int,
	customerId int,
	content varchar(100),
	insertDate datetime
);
--评论字段加注释
comment on column t_pinglun.id is '主键';
comment on column t_pinglun.moviceId is '评论信息';
comment on column t_pinglun.customerId is '评论人';
comment on column t_pinglun.content is '评论内容';
comment on column t_pinglun.insertDate is '评论日期';
--评论表加注释
comment on table t_pinglun is '评论';

分类表创建语句如下:


create table t_types(
	id integer,
	typesName varchar(100)
);
--分类字段加注释
comment on column t_types.id is '主键';
comment on column t_types.typesName is '分类';
--分类表加注释
comment on table t_types is '分类';

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_lbt;
create sequence s_t_ltsm;
create sequence s_t_movice;
create sequence s_t_movice_click;
create sequence s_t_pinglun;
create sequence s_t_types;

基于java的apriori算法的电影影讯推荐系统的设计与实现sqlserver数据库版本源码:

超级管理员表创建语句如下:


--超级管理员
create table t_admin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--超级管理员账号
	password varchar(100)--超级管理员密码
);
insert into t_admin(username,password) values('admin','123456');

用户表创建语句如下:


--用户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	name varchar(100),--姓名
	phone varchar(100),--手机
	sex varchar(100),--性别
	age varchar(100),--年龄
	address varchar(100),--住址
	idcard varchar(100),--身份证
	insertDate datetime,--入库日期
	headPic varchar(100),--头像
	ispl varchar(100),--评论权限
	mb1 varchar(100),--密保1
	mb2 varchar(100),--密保2
	mb3 varchar(100)--密保3
);

轮播图表创建语句如下:


--轮播图表注释
create table t_lbt(
	id int identity(1,1) primary key not null,--主键
	pic varchar(100)--图片
);

网站说明表创建语句如下:


--网站说明表注释
create table t_ltsm(
	id int identity(1,1) primary key not null,--主键
	title varchar(100)--网站说明
);

电影表创建语句如下:


--电影表注释
create table t_movice(
	id int identity(1,1) primary key not null,--主键
	typesId int,--分类
	title varchar(100),--名称
	pic varchar(100),--图片
	content varchar(100),--详细内容
	videoUrl varchar(100),--电影连接
	updateDate datetime,--上映时间
	zy varchar(100),--主演
	dy varchar(100),--导演
	zan int,--赞
	status varchar(100)--状态
);

电影查看记录表创建语句如下:


--电影查看记录表注释
create table t_movice_click(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	moviceId int,--电影
	insertDate datetime--日期
);

评论表创建语句如下:


--评论表注释
create table t_pinglun(
	id int identity(1,1) primary key not null,--主键
	moviceId int,--评论信息
	customerId int,--评论人
	content varchar(100),--评论内容
	insertDate datetime--评论日期
);

分类表创建语句如下:


--分类表注释
create table t_types(
	id int identity(1,1) primary key not null,--主键
	typesName varchar(100)--分类
);

基于java的apriori算法的电影影讯推荐系统的设计与实现登录后主页

基于java的apriori算法的电影影讯推荐系统的设计与实现spring springMVC hibernate框架对象(javaBean,pojo)设计:

用户javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//用户
@Table(name = "t_customer")
public class Customer {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String name;
//手机
private String phone;
//性别
private String sex;
//年龄
private String age;
//住址
private String address;
//身份证
private String idcard;
//入库日期
private Date insertDate;
//头像
private String headPic;
//评论权限
private String ispl;
//密保1
private String mb1;
//密保2
private String mb2;
//密保3
private String mb3;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getIspl() {return ispl;}
public void setIspl(String ispl) {this.ispl = ispl;}
public String getMb1() {return mb1;}
public void setMb1(String mb1) {this.mb1 = mb1;}
public String getMb2() {return mb2;}
public void setMb2(String mb2) {this.mb2 = mb2;}
public String getMb3() {return mb3;}
public void setMb3(String mb3) {this.mb3 = mb3;}
}

轮播图javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//轮播图
@Table(name = "t_lbt")
public class Lbt {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//图片
private String pic;
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

网站说明javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//网站说明
@Table(name = "t_ltsm")
public class Ltsm {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//网站说明
private String title;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
}

电影javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//电影
@Table(name = "t_movice")
public class Movice {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分类
private Integer typesId;
//名称
private String title;
//图片
private String pic;
//详细内容
private String content;
//电影连接
private String videoUrl;
//上映时间
private Date updateDate;
//主演
private String zy;
//导演
private String dy;
//赞
private Integer zan;
//状态
private String status;
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getVideoUrl() {return videoUrl;}
public void setVideoUrl(String videoUrl) {this.videoUrl = videoUrl;}
public Date getUpdateDate() {return updateDate;}
public void setUpdateDate(Date updateDate) {this.updateDate = updateDate;}
public String getZy() {return zy;}
public void setZy(String zy) {this.zy = zy;}
public String getDy() {return dy;}
public void setDy(String dy) {this.dy = dy;}
public Integer getZan() {return zan;}
public void setZan(Integer zan) {this.zan = zan;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

电影查看记录javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//电影查看记录
@Table(name = "t_movice_click")
public class Movice_click {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//电影
private Integer moviceId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getMoviceId() {return moviceId;}
public void setMoviceId(Integer moviceId) {this.moviceId = moviceId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

评论javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//评论
@Table(name = "t_pinglun")
public class Pinglun {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//评论信息
private Integer moviceId;
//评论人
private Integer customerId;
//评论内容
private String content;
//评论日期
private Date insertDate;
public Integer getMoviceId() {return moviceId;}
public void setMoviceId(Integer moviceId) {this.moviceId = moviceId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

分类javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//分类
@Table(name = "t_types")
public class Types {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分类
private String typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

基于java的apriori算法的电影影讯推荐系统的设计与实现spring springMVC mybatis框架对象(javaBean,pojo)设计:

用户javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//用户
public class Customer  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String name;
//手机
private String phone;
//性别
private String sex;
//年龄
private String age;
//住址
private String address;
//身份证
private String idcard;
//入库日期
private Date insertDate;
//头像
private String headPic;
//评论权限
private String ispl;
//密保1
private String mb1;
//密保2
private String mb2;
//密保3
private String mb3;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getName() {return name;}
public void setName(String name) {this.name = name;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getIspl() {return ispl;}
public void setIspl(String ispl) {this.ispl = ispl;}
public String getMb1() {return mb1;}
public void setMb1(String mb1) {this.mb1 = mb1;}
public String getMb2() {return mb2;}
public void setMb2(String mb2) {this.mb2 = mb2;}
public String getMb3() {return mb3;}
public void setMb3(String mb3) {this.mb3 = mb3;}
}

轮播图javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//轮播图
public class Lbt  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//图片
private String pic;
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

网站说明javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//网站说明
public class Ltsm  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//网站说明
private String title;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
}

电影javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//电影
public class Movice  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分类
private Integer typesId;
//名称
private String title;
//图片
private String pic;
//详细内容
private String content;
//电影连接
private String videoUrl;
//上映时间
private Date updateDate;
//主演
private String zy;
//导演
private String dy;
//赞
private Integer zan;
//状态
private String status;
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getVideoUrl() {return videoUrl;}
public void setVideoUrl(String videoUrl) {this.videoUrl = videoUrl;}
public Date getUpdateDate() {return updateDate;}
public void setUpdateDate(Date updateDate) {this.updateDate = updateDate;}
public String getZy() {return zy;}
public void setZy(String zy) {this.zy = zy;}
public String getDy() {return dy;}
public void setDy(String dy) {this.dy = dy;}
public Integer getZan() {return zan;}
public void setZan(Integer zan) {this.zan = zan;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

电影查看记录javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//电影查看记录
public class Movice_click  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//电影
private Integer moviceId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getMoviceId() {return moviceId;}
public void setMoviceId(Integer moviceId) {this.moviceId = moviceId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

评论javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//评论
public class Pinglun  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//评论信息
private Integer moviceId;
//评论人
private Integer customerId;
//评论内容
private String content;
//评论日期
private Date insertDate;
public Integer getMoviceId() {return moviceId;}
public void setMoviceId(Integer moviceId) {this.moviceId = moviceId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

分类javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//分类
public class Types  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分类
private String typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

猜你喜欢

转载自blog.csdn.net/weixin_44062395/article/details/87906344