javaweb hard disk management system

Thinking today, to complete a javaweb disk-based project management system, which features need to achieve?
This article will solve the problem is to study the face of such a large network file, the existing hardware and software technology, how to efficiently and conveniently manage their scientific. Based on the current development network hard disk management system, in-depth research to network file management as the core, the current very popular B / S architecture to develop as JAVA technology, rely mainly on the technical framework SSM,
SSM (MYECLIPSE) framework and its based javaweb for hard disk management system, using MVC mind can greatly reduce duplication of effort. And SSM (MYECLIPSE) framework with the best development tools is MYECLIPSE. MYECLIPSE integrates a large number of plug-ins, you can better use the SSM (MYECLIPSE) for development projects, while making more effective project development.
Through careful analysis of javaweb hard disk-based system management system, it can draw javaweb hard drive management system is based on a system of background items.
In such a project, the system login role is essential for each login role is set account and password. To ensure the system can log in normal use. SSM (MYECLIPSE) contained in the project administrator login role.

Summary of results-based management system project javaweb hard all the data: the administrator (admin), audio (yinpin), video (shipin), graphics (tuwen)

Table-based administrator of hard disk management systems javaweb

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password

 

Hard disk based audio management systems javaweb table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | Audio the above mentioned id 
mingcheng |  VARCHAR ( 255 ) |  | name 
Jieshao |  VARCHAR ( 255 ) |  | Introduction 
Wenjian |  VARCHAR ( 255 ) |  | file 
shangchuanriqi |  VARCHAR ( 255 ) |  | Upload date

 

Hard disk based video management systems javaweb table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | video the above mentioned id 
mingcheng |  VARCHAR ( 255 ) |  | name 
Jieshao |  VARCHAR ( 255 ) |  | Introduction 
Wenjian |  VARCHAR ( 255 ) |  | file 
shangchuanriqi |  VARCHAR ( 255 ) |  | Upload date

 

Based on the graphic table of hard disk management systems javaweb

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | Graphic the above mentioned id 
biaoti |  VARCHAR ( 255 ) |  | title 
neirong |  VARCHAR ( 255 ) |  | Content 
Fengmian |  VARCHAR ( 255 ) |  | Cover 
shangchuanshijian |  VARCHAR ( 255 ) |  | Upload time

 

 

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------

-- ----------------------------

-- Table structure for ggjyjavawebdypglxt

-- ----------------------------

DROP TABLE IF EXISTS `t_admin`;

CREATE TABLE `t_admin` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '管理员id',`username` VARCHAR(255) DEFAULT NULL COMMENT '账号',`password` VARCHAR(255) DEFAULT NULL COMMENT '密码',PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='管理员';

-- ----------------------------

DROP TABLE IF EXISTS `t_yinpin`;

CREATE TABLE `t_yinpin` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '音频id' , `Mingcheng` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' name ' ,` jieshao` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' introduction ' , `wenjian` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' file ' ,` shangchuanriqi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' upload date ' , PRIMARY  KEY ( `id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='音频';

-- ----------------------------

DROP TABLE IF EXISTS `t_shipin`;

CREATE TABLE `t_shipin` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '视频id',`mingcheng` VARCHAR(255) DEFAULT NULL COMMENT '名称',`jieshao` VARCHAR(255 ) the DEFAULT  NULL the COMMENT ' introduction ' , `wenjian` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' file ' ,` shangchuanriqi` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' uploads ' , a PRIMARY  KEY ( `id`) 

) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' video ' ; 

- ----------------------------

DROP TABLE IF EXISTS `t_tuwen`;

CREATE TABLE `t_tuwen` (`id` INT(11) NOT NULL AUTO_INCREMENT COMMENT '图文id',`biaoti` VARCHAR(255) DEFAULT NULL COMMENT '标题',`neirong` VARCHAR(255) DEFAULT NULL COMMENT '内容',`fengmian` VARCHAR(255) DEFAULT NULLThe COMMENT ' cover ' , `shangchuanshijian` VARCHAR ( 255 ) the DEFAULT  NULL the COMMENT ' Update ' , a PRIMARY  KEY (` id`) 

) ENGINE = MyISAM the DEFAULT the CHARSET = UTF8 the COMMENT = ' teletext ' ;

 

 

Adding audio module:

By adding an audio module, audio add operation can be completed. Jump to add audio page in the page, all of the information input audio, click the Add operation, the audio data can be submitted to the yinpinController in to post. Information contained in the audio field including name, description, file, upload date. In yinpinController accept all audio parameters by defining yinpin. Using the insert method yinpindao yinpin entities into the database. The process of adding data corresponding to the matching yinpinxml complete the insertion operation is performed in the sql statement in yinpinMapper. The part of the core code is as follows:

Yinpindao by the insert method to add a page to transfer audio database yinpindao.insert (yinpin);

Add audio successful information stored in the message request, give the user prompt request.setAttribute in the page ( "message", "Add Audio Success");

Return to the audio management interface

return "forward:/tianjiayinpin.action";

Queries audio module:

In the background yinpinguanli method, get all the data through selectByexample method. Save it to your request by foreach method in the page

Circulated to display the table. Complete audio queries. Specific code as follows:

Generating an audio sample-based, query by example defined YinpinExample example = new YinpinExample ();

All inquiries audio information List yinpinall = yinpindao.selectByExample (example) by the method yinpindao of selectByExample;

The audio information is saved to the request, on display request.setAttribute ( "yinpinall", yinpinall) page by foreach method;

Return to the audio management interface

return "forward:/yinpinguanli.action";

Modify audio module:

After the completion of the page to fill in the audio information changes, the incoming xiugaiyinpin.action address part of the data, and submit it by post. After receiving submitted by xiugaiyinpin in yinpinController in all fields packaged as an audio entity. And the entity in the incoming updateByPrimaryKeySelective yinpindao method, the definition of the field is updated by the remaining audio audio id In this method, the part of the field including the name, description, file upload date, the portion of the core code is as follows:

Corresponding modified audio yinpindao.updateByPrimaryKeySelective (yinpin) by modifying the method according to the id of yinpindao;

Success will modify the audio information is saved to the message request, the user is given prompt request.setAttribute in the page ( "message", "modify the audio information successfully");

Return to the audio management interface

return "forward:/yinpinguanli.action";

 

 

Source download

Delete audio module:

In the management page, click Delete. Href attribute page through a tag, the audio using the get method

Id is uploaded to the server, the server receives through yinpinController class shanchuyinpin, after calling deleteByPrimaryKey yinpinMapper method according to delete the ID. Save the information to delete the message request, the user is given delete successful message in the page, the part of the core code is as follows:

Deletes the corresponding audio yinpindao.deleteByPrimaryKey (id) id by removing method according to the yinpindao;

Success will delete audio information is saved to the message request, the user is given prompt request.setAttribute in the page ( "message", "delete audio success");

Return to the audio management interface

return "forward:/yinpinguanli.action";

Guess you like

Origin www.cnblogs.com/ygzswdy/p/11687167.html