机房管理系统的设计

机房管理系统的设计登录注册界面

机房管理系统的设计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_jf(
	id int primary key auto_increment comment '主键',
	jfName varchar(100) comment '机房编号',
	address varchar(100) comment '机房位置',
	status varchar(100) comment '状态'
) comment '机房';

机房预约表创建语句如下:


create table t_jfyy(
	id int primary key auto_increment comment '主键',
	jfId int comment '机房',
	teacherId int comment '教师',
	jfyyDate datetime comment '预约日期',
	status varchar(100) comment '状态',
	content varchar(100) comment '备注'
) comment '机房预约';

计算机表创建语句如下:


create table t_jsj(
	id int primary key auto_increment comment '主键',
	jsjbh varchar(100) comment '计算机编号',
	jfId int comment '所属机房',
	pz varchar(100) comment '配置参数',
	status varchar(100) comment '状态'
) comment '计算机';

计算机预约表创建语句如下:


create table t_jsjyy(
	id int primary key auto_increment comment '主键',
	jsjId int comment '计算机',
	studentId int comment '学生',
	jsjyyDate datetime comment '预约日期',
	status varchar(100) comment '状态',
	content varchar(100) comment '备注'
) comment '计算机预约';

课程表创建语句如下:


create table t_kc(
	id int primary key auto_increment comment '主键',
	kcName varchar(100) comment '课程名',
	teacherId int comment '教师'
) comment '课程';

学生表创建语句如下:


create table t_student(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '学号',
	password varchar(100) comment '密码',
	studentName varchar(100) comment '姓名',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	address varchar(100) comment '地址'
) comment '学生';

教师表创建语句如下:


create table t_teacher(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	teacherName varchar(100) comment '教师姓名',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	address varchar(100) comment '地址'
) comment '教师';

信息表创建语句如下:


create table t_xx(
	id int primary key auto_increment comment '主键',
	xxName varchar(100) comment '信息标题',
	pic varchar(100) comment '图片',
	showDate datetime comment '信息日期',
	content varchar(100) 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_jf(
	id integer,
	jfName varchar(100),
	address varchar(100),
	status varchar(100)
);
--机房字段加注释
comment on column t_jf.id is '主键';
comment on column t_jf.jfName is '机房编号';
comment on column t_jf.address is '机房位置';
comment on column t_jf.status is '状态';
--机房表加注释
comment on table t_jf is '机房';

机房预约表创建语句如下:


create table t_jfyy(
	id integer,
	jfId int,
	teacherId int,
	jfyyDate datetime,
	status varchar(100),
	content varchar(100)
);
--机房预约字段加注释
comment on column t_jfyy.id is '主键';
comment on column t_jfyy.jfId is '机房';
comment on column t_jfyy.teacherId is '教师';
comment on column t_jfyy.jfyyDate is '预约日期';
comment on column t_jfyy.status is '状态';
comment on column t_jfyy.content is '备注';
--机房预约表加注释
comment on table t_jfyy is '机房预约';

计算机表创建语句如下:


create table t_jsj(
	id integer,
	jsjbh varchar(100),
	jfId int,
	pz varchar(100),
	status varchar(100)
);
--计算机字段加注释
comment on column t_jsj.id is '主键';
comment on column t_jsj.jsjbh is '计算机编号';
comment on column t_jsj.jfId is '所属机房';
comment on column t_jsj.pz is '配置参数';
comment on column t_jsj.status is '状态';
--计算机表加注释
comment on table t_jsj is '计算机';

计算机预约表创建语句如下:


create table t_jsjyy(
	id integer,
	jsjId int,
	studentId int,
	jsjyyDate datetime,
	status varchar(100),
	content varchar(100)
);
--计算机预约字段加注释
comment on column t_jsjyy.id is '主键';
comment on column t_jsjyy.jsjId is '计算机';
comment on column t_jsjyy.studentId is '学生';
comment on column t_jsjyy.jsjyyDate is '预约日期';
comment on column t_jsjyy.status is '状态';
comment on column t_jsjyy.content is '备注';
--计算机预约表加注释
comment on table t_jsjyy is '计算机预约';

课程表创建语句如下:


create table t_kc(
	id integer,
	kcName varchar(100),
	teacherId int
);
--课程字段加注释
comment on column t_kc.id is '主键';
comment on column t_kc.kcName is '课程名';
comment on column t_kc.teacherId is '教师';
--课程表加注释
comment on table t_kc is '课程';

学生表创建语句如下:


create table t_student(
	id integer,
	username varchar(100),
	password varchar(100),
	studentName varchar(100),
	phone varchar(100),
	age varchar(100),
	sex varchar(100),
	address varchar(100)
);
--学生字段加注释
comment on column t_student.id is '主键';
comment on column t_student.username is '学号';
comment on column t_student.password is '密码';
comment on column t_student.studentName is '姓名';
comment on column t_student.phone is '电话';
comment on column t_student.age is '年龄';
comment on column t_student.sex is '性别';
comment on column t_student.address is '地址';
--学生表加注释
comment on table t_student is '学生';

教师表创建语句如下:


create table t_teacher(
	id integer,
	username varchar(100),
	password varchar(100),
	teacherName varchar(100),
	phone varchar(100),
	age varchar(100),
	sex varchar(100),
	address varchar(100)
);
--教师字段加注释
comment on column t_teacher.id is '主键';
comment on column t_teacher.username is '账号';
comment on column t_teacher.password is '密码';
comment on column t_teacher.teacherName is '教师姓名';
comment on column t_teacher.phone is '电话';
comment on column t_teacher.age is '年龄';
comment on column t_teacher.sex is '性别';
comment on column t_teacher.address is '地址';
--教师表加注释
comment on table t_teacher is '教师';

信息表创建语句如下:


create table t_xx(
	id integer,
	xxName varchar(100),
	pic varchar(100),
	showDate datetime,
	content varchar(100)
);
--信息字段加注释
comment on column t_xx.id is '主键';
comment on column t_xx.xxName is '信息标题';
comment on column t_xx.pic is '图片';
comment on column t_xx.showDate is '信息日期';
comment on column t_xx.content is '详细内容';
--信息表加注释
comment on table t_xx is '信息';

oracle特有,对应序列如下:


create sequence s_t_jf;
create sequence s_t_jfyy;
create sequence s_t_jsj;
create sequence s_t_jsjyy;
create sequence s_t_kc;
create sequence s_t_student;
create sequence s_t_teacher;
create sequence s_t_xx;

机房管理系统的设计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_jf(
	id int identity(1,1) primary key not null,--主键
	jfName varchar(100),--机房编号
	address varchar(100),--机房位置
	status varchar(100)--状态
);

机房预约表创建语句如下:


--机房预约表注释
create table t_jfyy(
	id int identity(1,1) primary key not null,--主键
	jfId int,--机房
	teacherId int,--教师
	jfyyDate datetime,--预约日期
	status varchar(100),--状态
	content varchar(100)--备注
);

计算机表创建语句如下:


--计算机表注释
create table t_jsj(
	id int identity(1,1) primary key not null,--主键
	jsjbh varchar(100),--计算机编号
	jfId int,--所属机房
	pz varchar(100),--配置参数
	status varchar(100)--状态
);

计算机预约表创建语句如下:


--计算机预约表注释
create table t_jsjyy(
	id int identity(1,1) primary key not null,--主键
	jsjId int,--计算机
	studentId int,--学生
	jsjyyDate datetime,--预约日期
	status varchar(100),--状态
	content varchar(100)--备注
);

课程表创建语句如下:


--课程表注释
create table t_kc(
	id int identity(1,1) primary key not null,--主键
	kcName varchar(100),--课程名
	teacherId int--教师
);

学生表创建语句如下:


--学生表注释
create table t_student(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--学号
	password varchar(100),--密码
	studentName varchar(100),--姓名
	phone varchar(100),--电话
	age varchar(100),--年龄
	sex varchar(100),--性别
	address varchar(100)--地址
);

教师表创建语句如下:


--教师表注释
create table t_teacher(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	teacherName varchar(100),--教师姓名
	phone varchar(100),--电话
	age varchar(100),--年龄
	sex varchar(100),--性别
	address varchar(100)--地址
);

信息表创建语句如下:


--信息表注释
create table t_xx(
	id int identity(1,1) primary key not null,--主键
	xxName varchar(100),--信息标题
	pic varchar(100),--图片
	showDate datetime,--信息日期
	content varchar(100)--详细内容
);

机房管理系统的设计登录后主页

机房管理系统的设计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_jf")
public class Jf {
//主键
@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 jfName;
//机房位置
private String address;
//状态
private String status;
public String getJfName() {return jfName;}
public void setJfName(String jfName) {this.jfName = jfName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
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_jfyy")
public class Jfyy {
//主键
@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 jfId;
//教师
private Integer teacherId;
//预约日期
private Date jfyyDate;
//状态
private String status;
//备注
private String content;
public Integer getJfId() {return jfId;}
public void setJfId(Integer jfId) {this.jfId = jfId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Date getJfyyDate() {return jfyyDate;}
public void setJfyyDate(Date jfyyDate) {this.jfyyDate = jfyyDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
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_jsj")
public class Jsj {
//主键
@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 jsjbh;
//所属机房
private Integer jfId;
//配置参数
private String pz;
//状态
private String status;
public String getJsjbh() {return jsjbh;}
public void setJsjbh(String jsjbh) {this.jsjbh = jsjbh;}
public Integer getJfId() {return jfId;}
public void setJfId(Integer jfId) {this.jfId = jfId;}
public String getPz() {return pz;}
public void setPz(String pz) {this.pz = pz;}
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_jsjyy")
public class Jsjyy {
//主键
@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 jsjId;
//学生
private Integer studentId;
//预约日期
private Date jsjyyDate;
//状态
private String status;
//备注
private String content;
public Integer getJsjId() {return jsjId;}
public void setJsjId(Integer jsjId) {this.jsjId = jsjId;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Date getJsjyyDate() {return jsjyyDate;}
public void setJsjyyDate(Date jsjyyDate) {this.jsjyyDate = jsjyyDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
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_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 Integer teacherId;
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
}

学生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_student")
public class Student {
//主键
@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 studentName;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
//地址
private String address;
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 getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

教师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 username;
//密码
private String password;
//教师姓名
private String teacherName;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
//地址
private String address;
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 getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

信息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_xx")
public class Xx {
//主键
@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 xxName;
//图片
private String pic;
//信息日期
private Date showDate;
//详细内容
private String content;
public String getXxName() {return xxName;}
public void setXxName(String xxName) {this.xxName = xxName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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;}
}

机房管理系统的设计spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

机房javaBean创建语句如下:


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

//机房
public class Jf  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//机房编号
private String jfName;
//机房位置
private String address;
//状态
private String status;
public String getJfName() {return jfName;}
public void setJfName(String jfName) {this.jfName = jfName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
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 Jfyy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//机房
private Integer jfId;
//教师
private Integer teacherId;
//预约日期
private Date jfyyDate;
//状态
private String status;
//备注
private String content;
public Integer getJfId() {return jfId;}
public void setJfId(Integer jfId) {this.jfId = jfId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Date getJfyyDate() {return jfyyDate;}
public void setJfyyDate(Date jfyyDate) {this.jfyyDate = jfyyDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
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 Jsj  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//计算机编号
private String jsjbh;
//所属机房
private Integer jfId;
//配置参数
private String pz;
//状态
private String status;
public String getJsjbh() {return jsjbh;}
public void setJsjbh(String jsjbh) {this.jsjbh = jsjbh;}
public Integer getJfId() {return jfId;}
public void setJfId(Integer jfId) {this.jfId = jfId;}
public String getPz() {return pz;}
public void setPz(String pz) {this.pz = pz;}
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 Jsjyy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//计算机
private Integer jsjId;
//学生
private Integer studentId;
//预约日期
private Date jsjyyDate;
//状态
private String status;
//备注
private String content;
public Integer getJsjId() {return jsjId;}
public void setJsjId(Integer jsjId) {this.jsjId = jsjId;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Date getJsjyyDate() {return jsjyyDate;}
public void setJsjyyDate(Date jsjyyDate) {this.jsjyyDate = jsjyyDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
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 Kc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程名
private String kcName;
//教师
private Integer teacherId;
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
}

学生javaBean创建语句如下:


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

//学生
public class Student  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 studentName;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
//地址
private String address;
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 getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

教师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 username;
//密码
private String password;
//教师姓名
private String teacherName;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
//地址
private String address;
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 getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

信息javaBean创建语句如下:


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

//信息
public class Xx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//信息标题
private String xxName;
//图片
private String pic;
//信息日期
private Date showDate;
//详细内容
private String content;
public String getXxName() {return xxName;}
public void setXxName(String xxName) {this.xxName = xxName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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;}
}

源代码下载点这里

评论