1. 程式人生 > >基於JSP的外教網站,優秀java設計

基於JSP的外教網站,優秀java設計

**基於JSP的外教網站,優秀java設計** 基於JSP的外教網站登入註冊介面

基於JSP的外教網站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_bk(
	id int primary key auto_increment comment '主鍵',
	bkName varchar(100) 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 '姓名',
	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 '頭像',
	level varchar(100) comment '層級',
	isft 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_kc(
	id int primary key auto_increment comment '主鍵',
	kcName varchar(100) comment '課程名稱',
	pic varchar(100) comment '圖片',
	content varchar(100) comment '內容'
) comment '課程';

課程報名表建立語句如下:


create table t_kcbm(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	kcId int comment '課程'
) comment '課程報名';

論壇說明表建立語句如下:


create table t_ltsm(
	id int primary key auto_increment comment '主鍵',
	title varchar(100) comment '論壇說明'
) comment '論壇說明';

敏感詞表建立語句如下:


create table t_mgc(
	id int primary key auto_increment comment '主鍵',
	mgc varchar(100) comment '敏感詞'
) comment '敏感詞';

評論表建立語句如下:


create table t_pinglun(
	id int primary key auto_increment comment '主鍵',
	wdxxId int comment '評論資訊',
	customerId int comment '評論人',
	content varchar(100) comment '評論內容',
	insertDate datetime comment '評論日期'
) comment '評論';

視訊表建立語句如下:


create table t_sp(
	id int primary key auto_increment comment '主鍵',
	spName varchar(100) comment '視訊名稱',
	fileUrl varchar(100) comment '地址',
	showDate datetime comment '顯示日期',
	content varchar(100) comment '內容'
) comment '視訊';

老師表建立語句如下:


create table t_teacher(
	id int primary key auto_increment comment '主鍵',
	teacherName varchar(100) comment '老師姓名',
	pic varchar(100) comment '圖片',
	content varchar(100) comment '簡介'
) comment '老師';

我的訊息表建立語句如下:


create table t_wdxx(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '我',
	title varchar(100) comment '標題',
	pic varchar(100) comment '圖片',
	content varchar(100) comment '內容',
	zan int comment '贊',
	insertDate datetime comment '釋出日期',
	nologin varchar(100) comment '遊客是否可見',
	bkId int comment ''
) comment '我的訊息';

基於JSP的外教網站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_bk(
	id integer,
	bkName varchar(100)
);
--論壇版塊欄位加註釋
comment on column t_bk.id is '主鍵';
comment on column t_bk.bkName is '版塊名稱';
--論壇版塊表加註釋
comment on table t_bk 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),
	level varchar(100),
	isft 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.level is '層級';
comment on column t_customer.isft 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_kc(
	id integer,
	kcName varchar(100),
	pic varchar(100),
	content varchar(100)
);
--課程欄位加註釋
comment on column t_kc.id is '主鍵';
comment on column t_kc.kcName is '課程名稱';
comment on column t_kc.pic is '圖片';
comment on column t_kc.content is '內容';
--課程表加註釋
comment on table t_kc is '課程';

課程報名表建立語句如下:


create table t_kcbm(
	id integer,
	customerId int,
	kcId int
);
--課程報名欄位加註釋
comment on column t_kcbm.id is '主鍵';
comment on column t_kcbm.customerId is '使用者';
comment on column t_kcbm.kcId is '課程';
--課程報名表加註釋
comment on table t_kcbm 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_mgc(
	id integer,
	mgc varchar(100)
);
--敏感詞欄位加註釋
comment on column t_mgc.id is '主鍵';
comment on column t_mgc.mgc is '敏感詞';
--敏感詞表加註釋
comment on table t_mgc is '敏感詞';

評論表建立語句如下:


create table t_pinglun(
	id integer,
	wdxxId int,
	customerId int,
	content varchar(100),
	insertDate datetime
);
--評論欄位加註釋
comment on column t_pinglun.id is '主鍵';
comment on column t_pinglun.wdxxId 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_sp(
	id integer,
	spName varchar(100),
	fileUrl varchar(100),
	showDate datetime,
	content varchar(100)
);
--視訊欄位加註釋
comment on column t_sp.id is '主鍵';
comment on column t_sp.spName is '視訊名稱';
comment on column t_sp.fileUrl is '地址';
comment on column t_sp.showDate is '顯示日期';
comment on column t_sp.content is '內容';
--視訊表加註釋
comment on table t_sp is '視訊';

老師表建立語句如下:


create table t_teacher(
	id integer,
	teacherName varchar(100),
	pic varchar(100),
	content varchar(100)
);
--老師欄位加註釋
comment on column t_teacher.id is '主鍵';
comment on column t_teacher.teacherName is '老師姓名';
comment on column t_teacher.pic is '圖片';
comment on column t_teacher.content is '簡介';
--老師表加註釋
comment on table t_teacher is '老師';

我的訊息表建立語句如下:


create table t_wdxx(
	id integer,
	customerId int,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	zan int,
	insertDate datetime,
	nologin varchar(100),
	bkId int
);
--我的訊息欄位加註釋
comment on column t_wdxx.id is '主鍵';
comment on column t_wdxx.customerId is '我';
comment on column t_wdxx.title is '標題';
comment on column t_wdxx.pic is '圖片';
comment on column t_wdxx.content is '內容';
comment on column t_wdxx.zan is '贊';
comment on column t_wdxx.insertDate is '釋出日期';
comment on column t_wdxx.nologin is '遊客是否可見';
comment on column t_wdxx.bkId is '';
--我的訊息表加註釋
comment on table t_wdxx is '我的訊息';

oracle特有,對應序列如下:


create sequence s_t_bk;
create sequence s_t_customer;
create sequence s_t_kc;
create sequence s_t_kcbm;
create sequence s_t_ltsm;
create sequence s_t_mgc;
create sequence s_t_pinglun;
create sequence s_t_sp;
create sequence s_t_teacher;
create sequence s_t_wdxx;

基於JSP的外教網站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_bk(
	id int identity(1,1) primary key not null,--主鍵
	bkName varchar(100)--版塊名稱
);

使用者表建立語句如下:


--使用者表註釋
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),--頭像
	level varchar(100),--層級
	isft varchar(100),--發帖許可權
	ispl varchar(100),--評論許可權
	mb1 varchar(100),--密保1
	mb2 varchar(100),--密保2
	mb3 varchar(100)--密保3
);

課程表建立語句如下:


--課程表註釋
create table t_kc(
	id int identity(1,1) primary key not null,--主鍵
	kcName varchar(100),--課程名稱
	pic varchar(100),--圖片
	content varchar(100)--內容
);

課程報名表建立語句如下:


--課程報名表註釋
create table t_kcbm(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	kcId int--課程
);

論壇說明表建立語句如下:


--論壇說明表註釋
create table t_ltsm(
	id int identity(1,1) primary key not null,--主鍵
	title varchar(100)--論壇說明
);

敏感詞表建立語句如下:


--敏感詞表註釋
create table t_mgc(
	id int identity(1,1) primary key not null,--主鍵
	mgc varchar(100)--敏感詞
);

評論表建立語句如下:


--評論表註釋
create table t_pinglun(
	id int identity(1,1) primary key not null,--主鍵
	wdxxId int,--評論資訊
	customerId int,--評論人
	content varchar(100),--評論內容
	insertDate datetime--評論日期
);

視訊表建立語句如下:


--視訊表註釋
create table t_sp(
	id int identity(1,1) primary key not null,--主鍵
	spName varchar(100),--視訊名稱
	fileUrl varchar(100),--地址
	showDate datetime,--顯示日期
	content varchar(100)--內容
);

老師表建立語句如下:


--老師表註釋
create table t_teacher(
	id int identity(1,1) primary key not null,--主鍵
	teacherName varchar(100),--老師姓名
	pic varchar(100),--圖片
	content varchar(100)--簡介
);

我的訊息表建立語句如下:


--我的訊息表註釋
create table t_wdxx(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--我
	title varchar(100),--標題
	pic varchar(100),--圖片
	content varchar(100),--內容
	zan int,--贊
	insertDate datetime,--釋出日期
	nologin varchar(100),--遊客是否可見
	bkId int--
);

基於JSP的外教網站登入後主頁

基於JSP的外教網站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_bk")
public class Bk {
//主鍵
@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 bkName;
public String getBkName() {return bkName;}
public void setBkName(String bkName) {this.bkName = bkName;}
}

使用者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 level;
//發帖許可權
private String isft;
//評論許可權
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 getLevel() {return level;}
public void setLevel(String level) {this.level = level;}
public String getIsft() {return isft;}
public void setIsft(String isft) {this.isft = isft;}
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_kc")
public class Kc {
//主鍵
@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 kcName;
//圖片
private String pic;
//內容
private String content;
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
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_kcbm")
public class Kcbm {
//主鍵
@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 kcId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
}

論壇說明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_mgc")
public class Mgc {
//主鍵
@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 mgc;
public String getMgc() {return mgc;}
public void setMgc(String mgc) {this.mgc = mgc;}
}

評論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 wdxxId;
//評論人
private Integer customerId;
//評論內容
private String content;
//評論日期
private Date insertDate;
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
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_sp")
public class Sp {
//主鍵
@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 spName;
//地址
private String fileUrl;
//顯示日期
private Date showDate;
//內容
private String content;
public String getSpName() {return spName;}
public void setSpName(String spName) {this.spName = spName;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
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_teacher")
public class Teacher {
//主鍵
@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 teacherName;
//圖片
private String pic;
//簡介
private String content;
public String getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
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_wdxx")
public class Wdxx {
//主鍵
@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 String title;
//圖片
private String pic;
//內容
private String content;
//贊
private Integer zan;
//釋出日期
private Date insertDate;
//遊客是否可見
private String nologin;
//
private Integer bkId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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 Integer getZan() {return zan;}
public void setZan(Integer zan) {this.zan = zan;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getNologin() {return nologin;}
public void setNologin(String nologin) {this.nologin = nologin;}
public Integer getBkId() {return bkId;}
public void setBkId(Integer bkId) {this.bkId = bkId;}
}

基於JSP的外教網站spring springMVC mybatis框架物件(javaBean,pojo)設計:

論壇版塊javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//論壇版塊
public class Bk  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//版塊名稱
private String bkName;
public String getBkName() {return bkName;}
public void setBkName(String bkName) {this.bkName = bkName;}
}

使用者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 level;
//發帖許可權
private String isft;
//評論許可權
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 getLevel() {return level;}
public void setLevel(String level) {this.level = level;}
public String getIsft() {return isft;}
public void setIsft(String isft) {this.isft = isft;}
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 Kc  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//課程名稱
private String kcName;
//圖片
private String pic;
//內容
private String content;
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
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 Kcbm  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//課程
private Integer kcId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
}

論壇說明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 Mgc  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//敏感詞
private String mgc;
public String getMgc() {return mgc;}
public void setMgc(String mgc) {this.mgc = mgc;}
}

評論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 wdxxId;
//評論人
private Integer customerId;
//評論內容
private String content;
//評論日期
private Date insertDate;
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
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 Sp  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//視訊名稱
private String spName;
//地址
private String fileUrl;
//顯示日期
private Date showDate;
//內容
private String content;
public String getSpName() {return spName;}
public void setSpName(String spName) {this.spName = spName;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
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 Teacher  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老師姓名
private String teacherName;
//圖片
private String pic;
//簡介
private String content;
public String getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
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 Wdxx  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//我
private Integer customerId;
//標題
private String title;
//圖片
private String pic;
//內容
private String content;
//贊
private Integer zan;
//釋出日期
private Date insertDate;
//遊客是否可見
private String nologin;
//
private Integer bkId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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 Integer getZan() {return zan;}
public void setZan(Integer zan) {this.zan = zan;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getNologin() {return nologin;}
public void setNologin(String nologin) {this.nologin = nologin;}
public Integer getBkId() {return bkId;}
public void setBkId(Integer bkId) {this.bkId = bkId;}
}