基於jsp的資訊釋出網站站內搜尋引擎的開發研究,站內搜尋引擎
阿新 • • 發佈:2018-12-20
**基於jsp的資訊釋出網站站內搜尋引擎的開發研究,站內搜尋引擎**
- 基於jsp的資訊釋出網站站內搜尋引擎的開發研究mysql資料庫建立語句
- 基於jsp的資訊釋出網站站內搜尋引擎的開發研究oracle資料庫建立語句
- 基於jsp的資訊釋出網站站內搜尋引擎的開發研究sqlserver資料庫建立語句
- 基於jsp的資訊釋出網站站內搜尋引擎的開發研究spring springMVC hibernate框架物件(javaBean,pojo)設計
- 基於jsp的資訊釋出網站站內搜尋引擎的開發研究spring springMVC mybatis框架物件(javaBean,pojo)設計
基於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_one(
id int primary key auto_increment comment '主鍵',
v1 varchar(100) comment '',
v2 varchar(100) comment '',
v3 varchar(100) comment '',
timesId int comment ''
) comment '';
表建立語句如下:
create table t_times( id int primary key auto_increment comment '主鍵', url varchar(100) comment '', yeshu varchar(100) comment '', insertDate datetime 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_one(
id integer,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100),
timesId int
);
--欄位加註釋
comment on column t_one.id is '主鍵';
comment on column t_one.v1 is '';
comment on column t_one.v2 is '';
comment on column t_one.v3 is '';
comment on column t_one.timesId is '';
--表加註釋
comment on table t_one is '';
表建立語句如下:
create table t_times(
id integer,
url varchar(100),
yeshu varchar(100),
insertDate datetime
);
--欄位加註釋
comment on column t_times.id is '主鍵';
comment on column t_times.url is '';
comment on column t_times.yeshu is '';
comment on column t_times.insertDate is '';
--表加註釋
comment on table t_times is '';
oracle特有,對應序列如下:
create sequence s_t_one;
create sequence s_t_times;
基於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_one(
id int identity(1,1) primary key not null,--主鍵
v1 varchar(100),--
v2 varchar(100),--
v3 varchar(100),--
timesId int--
);
表建立語句如下:
--表註釋
create table t_times(
id int identity(1,1) primary key not null,--主鍵
url varchar(100),--
yeshu varchar(100),--
insertDate datetime--
);
基於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_one")
public class One {
//主鍵
@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 Integer timesId;
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 Integer getTimesId() {return timesId;}
public void setTimesId(Integer timesId) {this.timesId = timesId;}
}
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_times")
public class Times {
//主鍵
@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 url;
//
private String yeshu;
//
private Date insertDate;
public String getUrl() {return url;}
public void setUrl(String url) {this.url = url;}
public String getYeshu() {return yeshu;}
public void setYeshu(String yeshu) {this.yeshu = yeshu;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
基於jsp的資訊釋出網站站內搜尋引擎的開發研究spring springMVC mybatis框架物件(javaBean,pojo)設計:
javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//
public class One 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 Integer timesId;
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 Integer getTimesId() {return timesId;}
public void setTimesId(Integer timesId) {this.timesId = timesId;}
}
javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//
public class Times extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//
private String url;
//
private String yeshu;
//
private Date insertDate;
public String getUrl() {return url;}
public void setUrl(String url) {this.url = url;}
public String getYeshu() {return yeshu;}
public void setYeshu(String yeshu) {this.yeshu = yeshu;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}