更多成品,定做java毕业设计,请咨询管理员qq:2812491287

JAVA智能路灯管理系统开发与实现

JAVA智能路灯管理系统开发与实现登录注册界面

JAVA智能路灯管理系统开发与实现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_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 '年龄',
	sex varchar(100) comment '性别',
	pic varchar(100) comment '头像'
) comment '普通管理员';

故障警告表创建语句如下:


create table t_gzjg(
	id int primary key auto_increment comment '主键',
	ldName varchar(100) comment '路灯编号',
	cotnent varchar(100) comment '内容',
	insertDate datetime comment '日期'
) comment '故障警告';

路灯表创建语句如下:


create table t_ld(
	id int primary key auto_increment comment '主键',
	ldName varchar(100) comment '路灯编号',
	address varchar(100) comment '地址',
	jwd varchar(100) comment '经纬度',
	ld varchar(100) comment '亮度',
	kg varchar(100) comment '开关',
	fz varchar(100) comment '分组',
	status varchar(100) comment '状态'
) comment '路灯';

JAVA智能路灯管理系统开发与实现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_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	customerName varchar(100),
	phone varchar(100),
	age varchar(100),
	sex varchar(100),
	pic 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.customerName is '姓名';
comment on column t_customer.phone is '电话';
comment on column t_customer.age is '年龄';
comment on column t_customer.sex is '性别';
comment on column t_customer.pic is '头像';
--普通管理员表加注释
comment on table t_customer is '普通管理员';

故障警告表创建语句如下:


create table t_gzjg(
	id integer,
	ldName varchar(100),
	cotnent varchar(100),
	insertDate datetime
);
--故障警告字段加注释
comment on column t_gzjg.id is '主键';
comment on column t_gzjg.ldName is '路灯编号';
comment on column t_gzjg.cotnent is '内容';
comment on column t_gzjg.insertDate is '日期';
--故障警告表加注释
comment on table t_gzjg is '故障警告';

路灯表创建语句如下:


create table t_ld(
	id integer,
	ldName varchar(100),
	address varchar(100),
	jwd varchar(100),
	ld varchar(100),
	kg varchar(100),
	fz varchar(100),
	status varchar(100)
);
--路灯字段加注释
comment on column t_ld.id is '主键';
comment on column t_ld.ldName is '路灯编号';
comment on column t_ld.address is '地址';
comment on column t_ld.jwd is '经纬度';
comment on column t_ld.ld is '亮度';
comment on column t_ld.kg is '开关';
comment on column t_ld.fz is '分组';
comment on column t_ld.status is '状态';
--路灯表加注释
comment on table t_ld is '路灯';

oracle特有,对应序列如下:


create sequence s_t_customer;
create sequence s_t_gzjg;
create sequence s_t_ld;

JAVA智能路灯管理系统开发与实现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_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),--年龄
	sex varchar(100),--性别
	pic varchar(100)--头像
);

故障警告表创建语句如下:


--故障警告表注释
create table t_gzjg(
	id int identity(1,1) primary key not null,--主键
	ldName varchar(100),--路灯编号
	cotnent varchar(100),--内容
	insertDate datetime--日期
);

路灯表创建语句如下:


--路灯表注释
create table t_ld(
	id int identity(1,1) primary key not null,--主键
	ldName varchar(100),--路灯编号
	address varchar(100),--地址
	jwd varchar(100),--经纬度
	ld varchar(100),--亮度
	kg varchar(100),--开关
	fz varchar(100),--分组
	status varchar(100)--状态
);

JAVA智能路灯管理系统开发与实现登录后主页

JAVA智能路灯管理系统开发与实现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_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 sex;
//头像
private String pic;
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

故障警告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_gzjg")
public class Gzjg {
//主键
@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 ldName;
//内容
private String cotnent;
//日期
private Date insertDate;
public String getLdName() {return ldName;}
public void setLdName(String ldName) {this.ldName = ldName;}
public String getCotnent() {return cotnent;}
public void setCotnent(String cotnent) {this.cotnent = cotnent;}
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_ld")
public class Ld {
//主键
@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 ldName;
//地址
private String address;
//经纬度
private String jwd;
//亮度
private String ld;
//开关
private String kg;
//分组
private String fz;
//状态
private String status;
public String getLdName() {return ldName;}
public void setLdName(String ldName) {this.ldName = ldName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public String getLd() {return ld;}
public void setLd(String ld) {this.ld = ld;}
public String getKg() {return kg;}
public void setKg(String kg) {this.kg = kg;}
public String getFz() {return fz;}
public void setFz(String fz) {this.fz = fz;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

JAVA智能路灯管理系统开发与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

普通管理员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 sex;
//头像
private String pic;
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 getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

故障警告javaBean创建语句如下:


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

//故障警告
public class Gzjg  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//路灯编号
private String ldName;
//内容
private String cotnent;
//日期
private Date insertDate;
public String getLdName() {return ldName;}
public void setLdName(String ldName) {this.ldName = ldName;}
public String getCotnent() {return cotnent;}
public void setCotnent(String cotnent) {this.cotnent = cotnent;}
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 Ld  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//路灯编号
private String ldName;
//地址
private String address;
//经纬度
private String jwd;
//亮度
private String ld;
//开关
private String kg;
//分组
private String fz;
//状态
private String status;
public String getLdName() {return ldName;}
public void setLdName(String ldName) {this.ldName = ldName;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getJwd() {return jwd;}
public void setJwd(String jwd) {this.jwd = jwd;}
public String getLd() {return ld;}
public void setLd(String ld) {this.ld = ld;}
public String getKg() {return kg;}
public void setKg(String kg) {this.kg = kg;}
public String getFz() {return fz;}
public void setFz(String fz) {this.fz = fz;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

评论