基于JSP邮件系统

基于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_delete(
	id int primary key auto_increment comment '主键',
	emailId varchar(100) comment '',
	title varchar(100) comment '',
	ownemail varchar(100) comment ''
) comment '';

广告或敏感词汇表创建语句如下:


create table t_ggc(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '广告词语',
	ownemail varchar(100) comment ''
) comment '广告或敏感词汇';

黑名单表创建语句如下:


create table t_hmd(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '姓名',
	email varchar(100) comment '邮件地址',
	ownemail varchar(100) comment ''
) comment '黑名单';

邮件接收表创建语句如下:


create table t_mail_recive(
	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 '附件地址',
	status int comment '状态',
	emailId varchar(100) comment '',
	email varchar(100) comment ''
) comment '邮件接收';

邮件发送表创建语句如下:


create table t_mail_send(
	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 '附件地址',
	status int comment '状态',
	ownemail varchar(100) comment ''
) comment '邮件发送';

通讯录表创建语句如下:


create table t_txl(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '姓名',
	email varchar(100) comment '邮件地址',
	ownemail varchar(100) 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_delete(
	id integer,
	emailId varchar(100),
	title varchar(100),
	ownemail varchar(100)
);
--字段加注释
comment on column t_delete.id is '主键';
comment on column t_delete.emailId is '';
comment on column t_delete.title is '';
comment on column t_delete.ownemail is '';
--表加注释
comment on table t_delete is '';

广告或敏感词汇表创建语句如下:


create table t_ggc(
	id integer,
	username varchar(100),
	ownemail varchar(100)
);
--广告或敏感词汇字段加注释
comment on column t_ggc.id is '主键';
comment on column t_ggc.username is '广告词语';
comment on column t_ggc.ownemail is '';
--广告或敏感词汇表加注释
comment on table t_ggc is '广告或敏感词汇';

黑名单表创建语句如下:


create table t_hmd(
	id integer,
	username varchar(100),
	email varchar(100),
	ownemail varchar(100)
);
--黑名单字段加注释
comment on column t_hmd.id is '主键';
comment on column t_hmd.username is '姓名';
comment on column t_hmd.email is '邮件地址';
comment on column t_hmd.ownemail is '';
--黑名单表加注释
comment on table t_hmd is '黑名单';

邮件接收表创建语句如下:


create table t_mail_recive(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	status int,
	emailId varchar(100),
	email varchar(100)
);
--邮件接收字段加注释
comment on column t_mail_recive.id is '主键';
comment on column t_mail_recive.v1 is '发件人';
comment on column t_mail_recive.v2 is '标题';
comment on column t_mail_recive.v3 is '内容';
comment on column t_mail_recive.v4 is '发送时间';
comment on column t_mail_recive.v5 is '附件名称';
comment on column t_mail_recive.v6 is '附件地址';
comment on column t_mail_recive.status is '状态';
comment on column t_mail_recive.emailId is '';
comment on column t_mail_recive.email is '';
--邮件接收表加注释
comment on table t_mail_recive is '邮件接收';

邮件发送表创建语句如下:


create table t_mail_send(
	id integer,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	status int,
	ownemail varchar(100)
);
--邮件发送字段加注释
comment on column t_mail_send.id is '主键';
comment on column t_mail_send.v1 is '收件人';
comment on column t_mail_send.v2 is '标题';
comment on column t_mail_send.v3 is '内容';
comment on column t_mail_send.v4 is '发送时间';
comment on column t_mail_send.v5 is '附件名称';
comment on column t_mail_send.v6 is '附件地址';
comment on column t_mail_send.status is '状态';
comment on column t_mail_send.ownemail is '';
--邮件发送表加注释
comment on table t_mail_send is '邮件发送';

通讯录表创建语句如下:


create table t_txl(
	id integer,
	username varchar(100),
	email varchar(100),
	ownemail varchar(100)
);
--通讯录字段加注释
comment on column t_txl.id is '主键';
comment on column t_txl.username is '姓名';
comment on column t_txl.email is '邮件地址';
comment on column t_txl.ownemail is '';
--通讯录表加注释
comment on table t_txl is '通讯录';

oracle特有,对应序列如下:


create sequence s_t_delete;
create sequence s_t_ggc;
create sequence s_t_hmd;
create sequence s_t_mail_recive;
create sequence s_t_mail_send;
create sequence s_t_txl;

基于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_delete(
	id int identity(1,1) primary key not null,--主键
	emailId varchar(100),--
	title varchar(100),--
	ownemail varchar(100)--
);

广告或敏感词汇表创建语句如下:


--广告或敏感词汇表注释
create table t_ggc(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--广告词语
	ownemail varchar(100)--
);

黑名单表创建语句如下:


--黑名单表注释
create table t_hmd(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--姓名
	email varchar(100),--邮件地址
	ownemail varchar(100)--
);

邮件接收表创建语句如下:


--邮件接收表注释
create table t_mail_recive(
	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),--附件地址
	status int,--状态
	emailId varchar(100),--
	email varchar(100)--
);

邮件发送表创建语句如下:


--邮件发送表注释
create table t_mail_send(
	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),--附件地址
	status int,--状态
	ownemail varchar(100)--
);

通讯录表创建语句如下:


--通讯录表注释
create table t_txl(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--姓名
	email varchar(100),--邮件地址
	ownemail varchar(100)--
);

基于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_delete")
public class Delete {
//主键
@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 emailId;
//
private String title;
//
private String ownemail;
public String getEmailId() {return emailId;}
public void setEmailId(String emailId) {this.emailId = emailId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

广告或敏感词汇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_ggc")
public class Ggc {
//主键
@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 ownemail;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

黑名单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_hmd")
public class Hmd {
//主键
@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 email;
//
private String ownemail;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

邮件接收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_mail_recive")
public class Mail_recive {
//主键
@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 Integer status;
//
private String emailId;
//
private String email;
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 Integer getStatus() {return status;}
public void setStatus(Integer status) {this.status = status;}
public String getEmailId() {return emailId;}
public void setEmailId(String emailId) {this.emailId = emailId;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
}

邮件发送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_mail_send")
public class Mail_send {
//主键
@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 Integer status;
//
private String ownemail;
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 Integer getStatus() {return status;}
public void setStatus(Integer status) {this.status = status;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

通讯录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_txl")
public class Txl {
//主键
@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 email;
//
private String ownemail;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

基于JSP邮件系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

javaBean创建语句如下:


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

//
public class Delete  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//
private String emailId;
//
private String title;
//
private String ownemail;
public String getEmailId() {return emailId;}
public void setEmailId(String emailId) {this.emailId = emailId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

广告或敏感词汇javaBean创建语句如下:


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

//广告或敏感词汇
public class Ggc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//广告词语
private String username;
//
private String ownemail;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

黑名单javaBean创建语句如下:


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

//黑名单
public class Hmd  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String username;
//邮件地址
private String email;
//
private String ownemail;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

邮件接收javaBean创建语句如下:


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

//邮件接收
public class Mail_recive  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 Integer status;
//
private String emailId;
//
private String email;
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 Integer getStatus() {return status;}
public void setStatus(Integer status) {this.status = status;}
public String getEmailId() {return emailId;}
public void setEmailId(String emailId) {this.emailId = emailId;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
}

邮件发送javaBean创建语句如下:


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

//邮件发送
public class Mail_send  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 Integer status;
//
private String ownemail;
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 Integer getStatus() {return status;}
public void setStatus(Integer status) {this.status = status;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

通讯录javaBean创建语句如下:


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

//通讯录
public class Txl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//姓名
private String username;
//邮件地址
private String email;
//
private String ownemail;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getOwnemail() {return ownemail;}
public void setOwnemail(String ownemail) {this.ownemail = ownemail;}
}

源代码下载点这里

评论