高中大学生交流平台的设计与实现

高中大学生交流平台的设计与实现登录注册界面

高中大学生交流平台的设计与实现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_blog(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容',
	pic varchar(100) comment '图片',
	insertDate datetime comment '发布日期',
	vNum int comment '访问数',
	pNum int comment '评论数',
	typesId int comment '类别',
	types int comment '1高中生 2大学生',
	bq varchar(100) comment ''
) comment '个人博客';

个人博客评论表创建语句如下:


create table t_blogpinglun(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	blogId int comment '博客',
	content varchar(100) comment '评论内容',
	insertDate datetime comment '评论日期'
) comment '个人博客评论';

用户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	customerName varchar(100) comment '姓名',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	sfz varchar(100) comment '身份证',
	sex varchar(100) comment '性别',
	headPic varchar(100) comment '头像',
	typesId int comment '',
	jifen int comment ''
) comment '用户';

新闻表创建语句如下:


create table t_jd(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容',
	showTime varchar(100) comment '时间'
) comment '新闻';

轮播图表创建语句如下:


create table t_lbt(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	link varchar(100) comment '链接'
) comment '轮播图';

留言表创建语句如下:


create table t_liuyan(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	content varchar(100) comment '内容',
	insertDate datetime comment '日期',
	back varchar(100) comment '回复内容',
	status varchar(100) comment '状态'
) comment '留言';

我的收藏表创建语句如下:


create table t_sc(
	id int primary key auto_increment comment '主键',
	blogId int comment '博客',
	customerId int comment '用户',
	insertDate datetime comment '日期'
) comment '我的收藏';

分类表创建语句如下:


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

资讯表创建语句如下:


create table t_zx(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容',
	pic varchar(100) comment '资讯图片',
	insertDate datetime comment '发布日期'
) comment '资讯';

高中大学生交流平台的设计与实现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_blog(
	id integer,
	customerId int,
	title varchar(100),
	content varchar(100),
	pic varchar(100),
	insertDate datetime,
	vNum int,
	pNum int,
	typesId int,
	types int,
	bq varchar(100)
);
--个人博客字段加注释
comment on column t_blog.id is '主键';
comment on column t_blog.customerId is '用户';
comment on column t_blog.title is '标题';
comment on column t_blog.content is '内容';
comment on column t_blog.pic is '图片';
comment on column t_blog.insertDate is '发布日期';
comment on column t_blog.vNum is '访问数';
comment on column t_blog.pNum is '评论数';
comment on column t_blog.typesId is '类别';
comment on column t_blog.types is '1高中生 2大学生';
comment on column t_blog.bq is '';
--个人博客表加注释
comment on table t_blog is '个人博客';

个人博客评论表创建语句如下:


create table t_blogpinglun(
	id integer,
	customerId int,
	blogId int,
	content varchar(100),
	insertDate datetime
);
--个人博客评论字段加注释
comment on column t_blogpinglun.id is '主键';
comment on column t_blogpinglun.customerId is '用户';
comment on column t_blogpinglun.blogId is '博客';
comment on column t_blogpinglun.content is '评论内容';
comment on column t_blogpinglun.insertDate is '评论日期';
--个人博客评论表加注释
comment on table t_blogpinglun is '个人博客评论';

用户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	phone varchar(100),
	age varchar(100),
	sfz varchar(100),
	sex varchar(100),
	headPic varchar(100),
	typesId int,
	jifen int
);
--用户字段加注释
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.customerName is '姓名';
comment on column t_customer.phone is '电话';
comment on column t_customer.age is '年龄';
comment on column t_customer.sfz is '身份证';
comment on column t_customer.sex is '性别';
comment on column t_customer.headPic is '头像';
comment on column t_customer.typesId is '';
comment on column t_customer.jifen is '';
--用户表加注释
comment on table t_customer is '用户';

新闻表创建语句如下:


create table t_jd(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	showTime varchar(100)
);
--新闻字段加注释
comment on column t_jd.id is '主键';
comment on column t_jd.title is '标题';
comment on column t_jd.pic is '图片';
comment on column t_jd.content is '内容';
comment on column t_jd.showTime is '时间';
--新闻表加注释
comment on table t_jd is '新闻';

轮播图表创建语句如下:


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

留言表创建语句如下:


create table t_liuyan(
	id integer,
	customerId int,
	content varchar(100),
	insertDate datetime,
	back varchar(100),
	status varchar(100)
);
--留言字段加注释
comment on column t_liuyan.id is '主键';
comment on column t_liuyan.customerId is '用户';
comment on column t_liuyan.content is '内容';
comment on column t_liuyan.insertDate is '日期';
comment on column t_liuyan.back is '回复内容';
comment on column t_liuyan.status is '状态';
--留言表加注释
comment on table t_liuyan is '留言';

我的收藏表创建语句如下:


create table t_sc(
	id integer,
	blogId int,
	customerId int,
	insertDate datetime
);
--我的收藏字段加注释
comment on column t_sc.id is '主键';
comment on column t_sc.blogId is '博客';
comment on column t_sc.customerId is '用户';
comment on column t_sc.insertDate is '日期';
--我的收藏表加注释
comment on table t_sc 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 '分类';

资讯表创建语句如下:


create table t_zx(
	id integer,
	title varchar(100),
	content varchar(100),
	pic varchar(100),
	insertDate datetime
);
--资讯字段加注释
comment on column t_zx.id is '主键';
comment on column t_zx.title is '标题';
comment on column t_zx.content is '内容';
comment on column t_zx.pic is '资讯图片';
comment on column t_zx.insertDate is '发布日期';
--资讯表加注释
comment on table t_zx is '资讯';

oracle特有,对应序列如下:


create sequence s_t_blog;
create sequence s_t_blogpinglun;
create sequence s_t_customer;
create sequence s_t_jd;
create sequence s_t_lbt;
create sequence s_t_liuyan;
create sequence s_t_sc;
create sequence s_t_types;
create sequence s_t_zx;

高中大学生交流平台的设计与实现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_blog(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	title varchar(100),--标题
	content varchar(100),--内容
	pic varchar(100),--图片
	insertDate datetime,--发布日期
	vNum int,--访问数
	pNum int,--评论数
	typesId int,--类别
	types int,--1高中生 2大学生
	bq varchar(100)--
);

个人博客评论表创建语句如下:


--个人博客评论表注释
create table t_blogpinglun(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	blogId int,--博客
	content varchar(100),--评论内容
	insertDate datetime--评论日期
);

用户表创建语句如下:


--用户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	customerName varchar(100),--姓名
	phone varchar(100),--电话
	age varchar(100),--年龄
	sfz varchar(100),--身份证
	sex varchar(100),--性别
	headPic varchar(100),--头像
	typesId int,--
	jifen int--
);

新闻表创建语句如下:


--新闻表注释
create table t_jd(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100),--内容
	showTime varchar(100)--时间
);

轮播图表创建语句如下:


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

留言表创建语句如下:


--留言表注释
create table t_liuyan(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	content varchar(100),--内容
	insertDate datetime,--日期
	back varchar(100),--回复内容
	status varchar(100)--状态
);

我的收藏表创建语句如下:


--我的收藏表注释
create table t_sc(
	id int identity(1,1) primary key not null,--主键
	blogId int,--博客
	customerId int,--用户
	insertDate datetime--日期
);

分类表创建语句如下:


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

资讯表创建语句如下:


--资讯表注释
create table t_zx(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	content varchar(100),--内容
	pic varchar(100),--资讯图片
	insertDate datetime--发布日期
);

高中大学生交流平台的设计与实现登录后主页

高中大学生交流平台的设计与实现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_blog")
public class Blog {
//主键
@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 content;
//图片
private String pic;
//发布日期
private Date insertDate;
//访问数
private Integer vNum;
//评论数
private Integer pNum;
//类别
private Integer typesId;
//1高中生 2大学生
private Integer types;
//
private String bq;
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 getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Integer getVNum() {return vNum;}
public void setVNum(Integer vNum) {this.vNum = vNum;}
public Integer getPNum() {return pNum;}
public void setPNum(Integer pNum) {this.pNum = pNum;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
public String getBq() {return bq;}
public void setBq(String bq) {this.bq = bq;}
}

个人博客评论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_blogpinglun")
public class Blogpinglun {
//主键
@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 blogId;
//评论内容
private String content;
//评论日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getBlogId() {return blogId;}
public void setBlogId(Integer blogId) {this.blogId = blogId;}
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_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 customerName;
//电话
private String phone;
//年龄
private String age;
//身份证
private String sfz;
//性别
private String sex;
//头像
private String headPic;
//
private Integer typesId;
//
private Integer jifen;
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 getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public Integer getJifen() {return jifen;}
public void setJifen(Integer jifen) {this.jifen = jifen;}
}

新闻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_jd")
public class Jd {
//主键
@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;
//时间
private String showTime;
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 getShowTime() {return showTime;}
public void setShowTime(String showTime) {this.showTime = showTime;}
}

轮播图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 title;
//图片
private String pic;
//链接
private String link;
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 getLink() {return link;}
public void setLink(String link) {this.link = link;}
}

留言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_liuyan")
public class Liuyan {
//主键
@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 content;
//日期
private Date insertDate;
//回复内容
private String back;
//状态
private String status;
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;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
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_sc")
public class Sc {
//主键
@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 blogId;
//用户
private Integer customerId;
//日期
private Date insertDate;
public Integer getBlogId() {return blogId;}
public void setBlogId(Integer blogId) {this.blogId = blogId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}

资讯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_zx")
public class Zx {
//主键
@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 content;
//资讯图片
private String pic;
//发布日期
private Date insertDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

高中大学生交流平台的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

个人博客javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//个人博客
public class Blog  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 content;
//图片
private String pic;
//发布日期
private Date insertDate;
//访问数
private Integer vNum;
//评论数
private Integer pNum;
//类别
private Integer typesId;
//1高中生 2大学生
private Integer types;
//
private String bq;
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 getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Integer getVNum() {return vNum;}
public void setVNum(Integer vNum) {this.vNum = vNum;}
public Integer getPNum() {return pNum;}
public void setPNum(Integer pNum) {this.pNum = pNum;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
public String getBq() {return bq;}
public void setBq(String bq) {this.bq = bq;}
}

个人博客评论javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//个人博客评论
public class Blogpinglun  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//博客
private Integer blogId;
//评论内容
private String content;
//评论日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getBlogId() {return blogId;}
public void setBlogId(Integer blogId) {this.blogId = blogId;}
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 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 customerName;
//电话
private String phone;
//年龄
private String age;
//身份证
private String sfz;
//性别
private String sex;
//头像
private String headPic;
//
private Integer typesId;
//
private Integer jifen;
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 getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public Integer getJifen() {return jifen;}
public void setJifen(Integer jifen) {this.jifen = jifen;}
}

新闻javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//新闻
public class Jd  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;
//时间
private String showTime;
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 getShowTime() {return showTime;}
public void setShowTime(String showTime) {this.showTime = showTime;}
}

轮播图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 title;
//图片
private String pic;
//链接
private String link;
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 getLink() {return link;}
public void setLink(String link) {this.link = link;}
}

留言javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//留言
public class Liuyan  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//内容
private String content;
//日期
private Date insertDate;
//回复内容
private String back;
//状态
private String status;
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;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
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 Sc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//博客
private Integer blogId;
//用户
private Integer customerId;
//日期
private Date insertDate;
public Integer getBlogId() {return blogId;}
public void setBlogId(Integer blogId) {this.blogId = blogId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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;}
}

资讯javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//资讯
public class Zx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//内容
private String content;
//资讯图片
private String pic;
//发布日期
private Date insertDate;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

评论