1. 程式人生 > >基於ssm的影迷互動的網路平臺設計與實現

基於ssm的影迷互動的網路平臺設計與實現

**基於ssm的影迷互動的網路平臺設計與實現** 基於ssm的影迷互動的網路平臺設計與實現登入註冊介面

基於ssm的影迷互動的網路平臺設計與實現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_click(
	id int primary key auto_increment comment '主鍵',
	fId int comment '電影',
	cId int comment '點選人',
	insertDate datetime comment '入庫日期'
) comment '';

客戶表建立語句如下:


create table t_customer(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	name varchar(100) comment '姓名',
	mobile varchar(100) comment '手機'
) comment '客戶';

個人喜好表建立語句如下:


create table t_customer_like(
	id int primary key auto_increment comment '主鍵',
	typeName varchar(100) comment '分類',
	cId int comment '客戶外來鍵'
) comment '個人喜好';

電影表建立語句如下:


create table t_film(
	id int primary key auto_increment comment '主鍵',
	v1 varchar(100) comment '電影名',
	v2 varchar(100) comment '演員',
	v3 varchar(100) comment '導演',
	v4 varchar(100) comment '型別',
	v5 varchar(100) comment '年代',
	v6 varchar(100) comment '地區',
	v7 varchar(100) comment '介紹',
	v8 varchar(100) comment '圖片',
	clickNum int comment '點選量'
) comment '電影';

表建立語句如下:


create table t_gyzn(
	id int primary key auto_increment comment '主鍵',
	v1 varchar(100) comment '電影名',
	v2 varchar(100) comment '演員',
	v3 varchar(100) comment '導演',
	v4 varchar(100) comment '型別',
	v5 varchar(100) comment '年代',
	v6 varchar(100) comment '地區',
	v7 varchar(100) comment '介紹',
	v8 varchar(100) comment '圖片',
	clickNum int comment '點選量'
) comment '';

評論表建立語句如下:


create table t_pinglun(
	id int primary key auto_increment comment '主鍵',
	filmId int comment '電影',
	content varchar(100) comment '評論'
) comment '評論';

表建立語句如下:


create table t_types(
	id int primary key auto_increment comment '主鍵',
	types varchar(100) comment '分類名稱'
) comment '';

新聞表建立語句如下:


create table t_xw(
	id int primary key auto_increment comment '主鍵',
	title varchar(100) comment '標題',
	pic varchar(100) comment '圖片',
	content varchar(100) comment '內容'
) comment '新聞';

影集表建立語句如下:


create table t_yj(
	id int primary key auto_increment comment '主鍵',
	pic varchar(100) comment '圖片'
) comment '影集';

基於ssm的影迷互動的網路平臺設計與實現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_click(
	id integer,
	fId int,
	cId int,
	insertDate datetime
);
--欄位加註釋
comment on column t_click.id is '主鍵';
comment on column t_click.fId is '電影';
comment on column t_click.cId is '點選人';
comment on column t_click.insertDate is '入庫日期';
--表加註釋
comment on table t_click is '';

客戶表建立語句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	mobile 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.mobile is '手機';
--客戶表加註釋
comment on table t_customer is '客戶';

個人喜好表建立語句如下:


create table t_customer_like(
	id integer,
	typeName varchar(100),
	cId int
);
--個人喜好欄位加註釋
comment on column t_customer_like.id is '主鍵';
comment on column t_customer_like.typeName is '分類';
comment on column t_customer_like.cId is '客戶外來鍵';
--個人喜好表加註釋
comment on table t_customer_like is '個人喜好';

電影表建立語句如下:


create table t_film(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	v7 varchar(100),
	v8 varchar(100),
	clickNum int
);
--電影欄位加註釋
comment on column t_film.id is '主鍵';
comment on column t_film.v1 is '電影名';
comment on column t_film.v2 is '演員';
comment on column t_film.v3 is '導演';
comment on column t_film.v4 is '型別';
comment on column t_film.v5 is '年代';
comment on column t_film.v6 is '地區';
comment on column t_film.v7 is '介紹';
comment on column t_film.v8 is '圖片';
comment on column t_film.clickNum is '點選量';
--電影表加註釋
comment on table t_film is '電影';

表建立語句如下:


create table t_gyzn(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	v7 varchar(100),
	v8 varchar(100),
	clickNum int
);
--欄位加註釋
comment on column t_gyzn.id is '主鍵';
comment on column t_gyzn.v1 is '電影名';
comment on column t_gyzn.v2 is '演員';
comment on column t_gyzn.v3 is '導演';
comment on column t_gyzn.v4 is '型別';
comment on column t_gyzn.v5 is '年代';
comment on column t_gyzn.v6 is '地區';
comment on column t_gyzn.v7 is '介紹';
comment on column t_gyzn.v8 is '圖片';
comment on column t_gyzn.clickNum is '點選量';
--表加註釋
comment on table t_gyzn is '';

評論表建立語句如下:


create table t_pinglun(
	id integer,
	filmId int,
	content varchar(100)
);
--評論欄位加註釋
comment on column t_pinglun.id is '主鍵';
comment on column t_pinglun.filmId is '電影';
comment on column t_pinglun.content is '評論';
--評論表加註釋
comment on table t_pinglun is '評論';

表建立語句如下:


create table t_types(
	id integer,
	types varchar(100)
);
--欄位加註釋
comment on column t_types.id is '主鍵';
comment on column t_types.types is '分類名稱';
--表加註釋
comment on table t_types is '';

新聞表建立語句如下:


create table t_xw(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100)
);
--新聞欄位加註釋
comment on column t_xw.id is '主鍵';
comment on column t_xw.title is '標題';
comment on column t_xw.pic is '圖片';
comment on column t_xw.content is '內容';
--新聞表加註釋
comment on table t_xw is '新聞';

影集表建立語句如下:


create table t_yj(
	id integer,
	pic varchar(100)
);
--影集欄位加註釋
comment on column t_yj.id is '主鍵';
comment on column t_yj.pic is '圖片';
--影集表加註釋
comment on table t_yj is '影集';

oracle特有,對應序列如下:


create sequence s_t_click;
create sequence s_t_customer;
create sequence s_t_customer_like;
create sequence s_t_film;
create sequence s_t_gyzn;
create sequence s_t_pinglun;
create sequence s_t_types;
create sequence s_t_xw;
create sequence s_t_yj;

基於ssm的影迷互動的網路平臺設計與實現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_click(
	id int identity(1,1) primary key not null,--主鍵
	fId int,--電影
	cId int,--點選人
	insertDate datetime--入庫日期
);

客戶表建立語句如下:


--客戶表註釋
create table t_customer(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	name varchar(100),--姓名
	mobile varchar(100)--手機
);

個人喜好表建立語句如下:


--個人喜好表註釋
create table t_customer_like(
	id int identity(1,1) primary key not null,--主鍵
	typeName varchar(100),--分類
	cId int--客戶外來鍵
);

電影表建立語句如下:


--電影表註釋
create table t_film(
	id int identity(1,1) primary key not null,--主鍵
	v1 varchar(100),--電影名
	v2 varchar(100),--演員
	v3 varchar(100),--導演
	v4 varchar(100),--型別
	v5 varchar(100),--年代
	v6 varchar(100),--地區
	v7 varchar(100),--介紹
	v8 varchar(100),--圖片
	clickNum int--點選量
);

表建立語句如下:


--表註釋
create table t_gyzn(
	id int identity(1,1) primary key not null,--主鍵
	v1 varchar(100),--電影名
	v2 varchar(100),--演員
	v3 varchar(100),--導演
	v4 varchar(100),--型別
	v5 varchar(100),--年代
	v6 varchar(100),--地區
	v7 varchar(100),--介紹
	v8 varchar(100),--圖片
	clickNum int--點選量
);

評論表建立語句如下:


--評論表註釋
create table t_pinglun(
	id int identity(1,1) primary key not null,--主鍵
	filmId int,--電影
	content varchar(100)--評論
);

表建立語句如下:


--表註釋
create table t_types(
	id int identity(1,1) primary key not null,--主鍵
	types varchar(100)--分類名稱
);

新聞表建立語句如下:


--新聞表註釋
create table t_xw(
	id int identity(1,1) primary key not null,--主鍵
	title varchar(100),--標題
	pic varchar(100),--圖片
	content varchar(100)--內容
);

影集表建立語句如下:


--影集表註釋
create table t_yj(
	id int identity(1,1) primary key not null,--主鍵
	pic varchar(100)--圖片
);

基於ssm的影迷互動的網路平臺設計與實現登入後主頁

基於ssm的影迷互動的網路平臺設計與實現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_click")
public class 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 fId;
//點選人
private Integer cId;
//入庫日期
private Date insertDate;
public Integer getFId() {return fId;}
public void setFId(Integer fId) {this.fId = fId;}
public Integer getCId() {return cId;}
public void setCId(Integer cId) {this.cId = cId;}
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_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 mobile;
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 getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}

個人喜好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_like")
public class Customer_like {
//主鍵
@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 typeName;
//客戶外來鍵
private Integer cId;
public String getTypeName() {return typeName;}
public void setTypeName(String typeName) {this.typeName = typeName;}
public Integer getCId() {return cId;}
public void setCId(Integer cId) {this.cId = cId;}
}

電影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_film")
public class Film {
//主鍵
@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 v1;
//演員
private String v2;
//導演
private String v3;
//型別
private String v4;
//年代
private String v5;
//地區
private String v6;
//介紹
private String v7;
//圖片
private String v8;
//點選量
private Integer clickNum;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public Integer getClickNum() {return clickNum;}
public void setClickNum(Integer clickNum) {this.clickNum = clickNum;}
}

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_gyzn")
public class Gyzn {
//主鍵
@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 v1;
//演員
private String v2;
//導演
private String v3;
//型別
private String v4;
//年代
private String v5;
//地區
private String v6;
//介紹
private String v7;
//圖片
private String v8;
//點選量
private Integer clickNum;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public Integer getClickNum() {return clickNum;}
public void setClickNum(Integer clickNum) {this.clickNum = clickNum;}
}

評論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 filmId;
//評論
private String content;
public Integer getFilmId() {return filmId;}
public void setFilmId(Integer filmId) {this.filmId = filmId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

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 types;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
}

新聞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_xw")
public class Xw {
//主鍵
@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;
//圖片
private String pic;
//內容
private String content;
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;}
}

影集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_yj")
public class Yj {
//主鍵
@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;}
}

基於ssm的影迷互動的網路平臺設計與實現spring springMVC mybatis框架物件(javaBean,pojo)設計:

javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//
public class Click  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//電影
private Integer fId;
//點選人
private Integer cId;
//入庫日期
private Date insertDate;
public Integer getFId() {return fId;}
public void setFId(Integer fId) {this.fId = fId;}
public Integer getCId() {return cId;}
public void setCId(Integer cId) {this.cId = cId;}
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 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 mobile;
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 getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}

個人喜好javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//個人喜好
public class Customer_like  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分類
private String typeName;
//客戶外來鍵
private Integer cId;
public String getTypeName() {return typeName;}
public void setTypeName(String typeName) {this.typeName = typeName;}
public Integer getCId() {return cId;}
public void setCId(Integer cId) {this.cId = cId;}
}

電影javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//電影
public class Film  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//電影名
private String v1;
//演員
private String v2;
//導演
private String v3;
//型別
private String v4;
//年代
private String v5;
//地區
private String v6;
//介紹
private String v7;
//圖片
private String v8;
//點選量
private Integer clickNum;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public Integer getClickNum() {return clickNum;}
public void setClickNum(Integer clickNum) {this.clickNum = clickNum;}
}

javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//
public class Gyzn  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//電影名
private String v1;
//演員
private String v2;
//導演
private String v3;
//型別
private String v4;
//年代
private String v5;
//地區
private String v6;
//介紹
private String v7;
//圖片
private String v8;
//點選量
private Integer clickNum;
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public Integer getClickNum() {return clickNum;}
public void setClickNum(Integer clickNum) {this.clickNum = clickNum;}
}

評論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 filmId;
//評論
private String content;
public Integer getFilmId() {return filmId;}
public void setFilmId(Integer filmId) {this.filmId = filmId;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

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 types;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
}

新聞javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//新聞
public class Xw  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//標題
private String title;
//圖片
private String pic;
//內容
private String content;
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;}
}

影集javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//影集
public class Yj  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;}
}