已閱讀5頁(yè),還剩51頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
北京科技大學(xué)天津?qū)W院本科生畢業(yè)設(shè)計(jì)(論文)本科生畢業(yè)設(shè)計(jì)(論文)-5-基于j2ee技術(shù)的網(wǎng)上考試系統(tǒng)的開(kāi)發(fā)與設(shè)計(jì)摘要在網(wǎng)絡(luò)技術(shù)逐漸滲入社會(huì)生活各個(gè)層面的今天,傳統(tǒng)的考試方式也面臨著變革,而網(wǎng)絡(luò)考試則是一個(gè)很重要的方向。基于網(wǎng)絡(luò)的考試系統(tǒng)是傳統(tǒng)考場(chǎng)的延伸,加上數(shù)據(jù)庫(kù)技術(shù)的利用,大大簡(jiǎn)化了傳統(tǒng)考試的過(guò)程。因此網(wǎng)絡(luò)考試系統(tǒng)是電子化教學(xué)不可缺少的一個(gè)重要環(huán)節(jié)。所以現(xiàn)在較好的考試方法為網(wǎng)絡(luò)考試,考生通過(guò)姓名、準(zhǔn)考證號(hào)碼或口令進(jìn)行登錄,試卷可以根據(jù)題庫(kù)中的內(nèi)容即時(shí)生成,可避免考試前的壓題;而且可以采用大量標(biāo)準(zhǔn)化試題,從而使用計(jì)算機(jī)判卷,大大提高閱卷效率;還可以直接把成績(jī)送到數(shù)據(jù)庫(kù)中,進(jìn)行統(tǒng)計(jì)、排序等操作。因此,采用網(wǎng)絡(luò)考試方式將是以后考試發(fā)展的趨勢(shì)。網(wǎng)絡(luò)考試系統(tǒng)的實(shí)現(xiàn)技術(shù)有多種,我們開(kāi)發(fā)制作的網(wǎng)絡(luò)考試系統(tǒng)是采用典型的瀏覽器/服務(wù)器型的b/s架構(gòu),系統(tǒng)按照功能的分類(lèi)劃分為相對(duì)獨(dú)立但又相關(guān)的兩大部分,其開(kāi)發(fā)主要包括考生考試應(yīng)用程序的開(kāi)發(fā)、服務(wù)器考試管理系統(tǒng)應(yīng)用程序的開(kāi)發(fā)。本考試系統(tǒng)以windows xp操作系統(tǒng)、mysql為數(shù)據(jù)庫(kù)平臺(tái),開(kāi)發(fā)工具為myeclipse 6.5。myeclipse 6.5是非常流行的基于java語(yǔ)言的可視化編程工具,mysql 是一個(gè)小型關(guān)系型數(shù)據(jù)庫(kù)管理系統(tǒng)。首先建立考試系統(tǒng)應(yīng)用程序框架,然后,對(duì)初始原型系統(tǒng)進(jìn)行需求迭代,不斷修正和改進(jìn),直到形成滿(mǎn)意的可行系統(tǒng)。在開(kāi)發(fā)過(guò)程中遵循了軟件工程原理,經(jīng)歷了需求分析、概要設(shè)計(jì)、詳細(xì)設(shè)計(jì)、測(cè)試與配置幾個(gè)階段,直至后期的系統(tǒng)維護(hù),從而保證了軟件的質(zhì)量。論文內(nèi)容共分六部分:第一部分是引言,簡(jiǎn)要介紹了網(wǎng)絡(luò)考試系統(tǒng),開(kāi)發(fā)工具的選擇;第二部分是網(wǎng)絡(luò)考試系統(tǒng)功能分析與應(yīng)用程序框架的建立,確定了系統(tǒng)的確切需求同時(shí)建立考試管理系統(tǒng)應(yīng)用程序框架;第三部分是考試管理系統(tǒng)概要設(shè)計(jì),將服務(wù)器考試管理系統(tǒng)按照功能的分類(lèi)劃分為相對(duì)獨(dú)立但又相關(guān)的五大功能模塊,并在此基礎(chǔ)上逐步細(xì)化;第四部分是考試管理系統(tǒng)詳細(xì)設(shè)計(jì);第五部分是測(cè)試與調(diào)試;第六部分是致謝頁(yè)。the network examination system realized by j2ee techniqueabstractseep into today that society life of each level gradually in the network technique, the traditional examination method also faces to replace, and network examination is a very important direction. according to the examination system of the network is process that the exploitation that the tradition tests a field extensions. with the technique of database, simplifying the tradition examination consumedly. for this reason network examination system is an important link of the electronical teaching indispensability. so the good examination in now method examines for the network, the examinee passes the name and allow to research number or passwords proceed the logging, for a contents according to a real time born, can avoiding the examination press; and can adopt large quantity standardize to try, from but the usage calculator judges book, increases to grade examination papers the efficiency consumedly; can also send to the score directly in the database, proceed the covariance, row preface etc. operation. therefore, adoption network examination the way will examine the trend of the development later on.the network examination system realizes technique contain variety, we develops the network examination system of the creation is development and examination backup system that the classification that the type of b/s to adopts typical browser/ server type configurings, the system divides the line according to the function to apply the procedure for opposite independence but again related two greatest molds a development, server for, its development primarily including users examination applying procedure examination control systems apply the development of the procedure. this examination system regard the operate system of windowsxp,mysql as the database terrace, the development tool is myeclipse 6.5. myeclipse 6.5 is very popular of according to the java is phonetic to see to turn to weave the distance tool, the mysql is a tables top relation database management system.first establish the examine system application procedure frame, then, start to the beginning the prototype system proceeds to require on behalf, revising continuously with improve, until formation satisfied can a system. followed the software engineering principle in develop process, experience the need analysis, essentials design, detailed design, test with install a few stages, keep to the in the late system to support, from but guaranteed the quantity of the software.the thesis contents is divided into totally six part: the first part is choice that preface that server examination management system, the synopsis introduced the network the examination the system, developping the tool; the second part is a network examination system function analysis and apply the procedure frame establish, making sure the system to really slice the need to establish at the same time examination control system application procedure frame; the third part is classification that examination management the system essentials designs, examining the server to control the system to divide the line according to the function for opposite independent but again related five greatest functions mold piece, and here foundation top gradually thin turn; the four-part cent is a detailed design in system in management in examination; the fifth the part is a test with install; the sixth part is the page with gratitude.目錄摘要1abstract2引 言61需求分析71.1系統(tǒng)目標(biāo)71.2可行性分析71.2.1現(xiàn)有的數(shù)據(jù)庫(kù)程序的分層結(jié)構(gòu)71.2.1.1 傳統(tǒng)二層結(jié)構(gòu)71.2.1.2 網(wǎng)絡(luò)分布式應(yīng)用系統(tǒng)71.2.2xml語(yǔ)言81.3 本系統(tǒng)的選擇方案91.4 建模工具的選擇92 基于uml的系統(tǒng)分析102.1用例圖102.1.1 用戶(hù)關(guān)系圖102.1.2 系統(tǒng)用例圖102.2 順序圖112.2.1 老師活動(dòng)順序圖112.2.2考生活動(dòng)順序圖122.3 類(lèi)圖133 數(shù)據(jù)庫(kù)的分析設(shè)計(jì)143.1 圖143.2 表設(shè)計(jì)143.2.1 用戶(hù)表設(shè)計(jì)143.2.2 課程表設(shè)計(jì)153.2.3 試題表設(shè)計(jì)153.2.4 試卷表設(shè)計(jì)163.2.5 成績(jī)表設(shè)計(jì)163.2.6 試卷試題表174 系統(tǒng)實(shí)現(xiàn)184.1 開(kāi)發(fā)平臺(tái)的選擇184.2 編輯工具的選擇184.3 系統(tǒng)編碼184.3.1 核心配置文件web.xml184.3.2 spring配置文件applicationcontent.xml204.3.3 struts2.0配置文件struts.xml254.3.4 dwr配置文件dwr.xml29結(jié)論31參 考 文 獻(xiàn)32附 錄34摘要44致謝55引 言 現(xiàn)在網(wǎng)絡(luò)正在改變著傳統(tǒng)的教育方式,網(wǎng)絡(luò)教育也越來(lái)越多,就算是傳統(tǒng)的教育方式下,把考試搬到網(wǎng)絡(luò)上也是一種趨勢(shì)??荚嚨臒o(wú)紙化網(wǎng)絡(luò)化不僅能有效減少老師的工作量,很好的利用計(jì)算機(jī)的優(yōu)勢(shì),提高工作效率,也能使考試更加公平、公正。所以就一定要構(gòu)建一個(gè)性能良好安全可靠的可以滿(mǎn)足大量學(xué)生同時(shí)使用的網(wǎng)絡(luò)考試系統(tǒng)。本原型系統(tǒng)主要功能如下:1. 學(xué)生可以在網(wǎng)上進(jìn)行考試,考試結(jié)束后由計(jì)算機(jī)批改試題給出分?jǐn)?shù),并記錄成績(jī)。2. 老師可以在網(wǎng)上對(duì)課程,試題,試卷進(jìn)行相應(yīng)的操作,并可查詢(xún)學(xué)生成績(jī)等功能。1需求分析1.1系統(tǒng)目標(biāo)本網(wǎng)絡(luò)考試系統(tǒng)應(yīng)該能滿(mǎn)足學(xué)校幾千學(xué)生在任何地方、任何時(shí)間都能參加考試。本系統(tǒng)要讓學(xué)生可以在網(wǎng)上進(jìn)行考試,考試結(jié)束后由計(jì)算機(jī)批改試題給出分?jǐn)?shù),并記錄成績(jī)。老師可以在網(wǎng)上對(duì)課程,試題,試卷進(jìn)行相應(yīng)的操作,并可查詢(xún)學(xué)生成績(jī)。另外為了讓考試比較公平,試卷的試題由計(jì)算機(jī)隨機(jī)從題庫(kù)抽取。1.2可行性分析1.2.1現(xiàn)有的數(shù)據(jù)庫(kù)程序的分層結(jié)構(gòu)1.2.1.1 傳統(tǒng)二層結(jié)構(gòu)傳統(tǒng)的二層式程序,也就是客戶(hù)/服務(wù)器(client/server)結(jié)構(gòu),這種程序相對(duì)簡(jiǎn)單、清楚、開(kāi)發(fā)容易,其結(jié)構(gòu)如圖1??蛻?hù)機(jī)都通過(guò)網(wǎng)絡(luò)連接到同一個(gè)數(shù)據(jù)庫(kù)上,不過(guò)這樣結(jié)構(gòu)問(wèn)題很多,最主要的就是性能較差維護(hù)困難已經(jīng)不適應(yīng)在因特網(wǎng)(internet)上使用。數(shù)據(jù)同一性和完整性難以控制。同時(shí)由于每一個(gè)客戶(hù)機(jī)都必須安裝特定的軟件,且這種客戶(hù)端軟件體積還比較大,用戶(hù)使用起來(lái)非常不方便,所以目前已經(jīng)面臨淘汰。不過(guò)這樣的系統(tǒng)開(kāi)發(fā)比較簡(jiǎn)單,對(duì)開(kāi)發(fā)人員的技術(shù)要求也不高,在內(nèi)部局域網(wǎng)上使用還有一定的市場(chǎng)。1.2.1.2 網(wǎng)絡(luò)分布式應(yīng)用系統(tǒng)近幾年來(lái)因特網(wǎng)飛速發(fā)展,人們的生活因?yàn)榫W(wǎng)絡(luò)而在慢慢的改變?,F(xiàn)在的個(gè)人電腦(pc)上都安裝了瀏覽器(browser)因此人們就利用瀏覽器來(lái)作為客戶(hù)端程序,萬(wàn)維網(wǎng)服務(wù)器(web server)作為中間層和客戶(hù)端溝通服務(wù)器,這就是現(xiàn)在流行的b/s(browser/server)結(jié)構(gòu)方式。在這種結(jié)構(gòu)下,本地的計(jì)算機(jī)無(wú)須安裝任何客戶(hù)端程序,只要有瀏覽器,可以使用因特網(wǎng)就可以使用系統(tǒng)了。他不僅僅減少了開(kāi)發(fā)客戶(hù)端帶來(lái)的成本,最關(guān)鍵的是,大大減少了系統(tǒng)維護(hù)的成本和時(shí)間,當(dāng)修改系統(tǒng)的時(shí)候不需要對(duì)客戶(hù)做任何的改動(dòng)。并且客戶(hù)也可以在任何計(jì)算機(jī)上使用你的系統(tǒng)而不要做特別的設(shè)置。1.2.2 xml語(yǔ)言xml(extended markup language)是一種標(biāo)記語(yǔ)言,就象我們熟悉的html一樣,但是xml的標(biāo)簽是由人們根據(jù)自己的需要來(lái)定制的,也就是說(shuō),任何詞和字都可以做為標(biāo)簽來(lái)用,只要能準(zhǔn)確的表達(dá)數(shù)據(jù)的屬性。例如當(dāng)我們要表達(dá)一個(gè)人的姓名的時(shí)候用html也許我們會(huì)這樣做:“張三”,但如果用xml我們就可以這樣做:“張三”。數(shù)據(jù)表達(dá)的準(zhǔn)確性xml絕對(duì)比html好多了!準(zhǔn)確表達(dá)數(shù)據(jù)的含義這就是xml帶來(lái)的最大好處。有了xml,我們就能定制各行各業(yè)的xml標(biāo)簽,這樣對(duì)于要傳輸?shù)臄?shù)據(jù)就能用文本方式傳送,并且只要對(duì)方有一份標(biāo)簽的定義文件就可以理解我們所表達(dá)的意思,從而在任何程序之間,不管他是用什么語(yǔ)言編寫(xiě)的;任何系統(tǒng)之間,不管他是運(yùn)行在什么cpu上的,是windows、linux還是mac os;任何人之間,無(wú)論他是什么國(guó)籍,說(shuō)什么語(yǔ)言,是否懂得你的語(yǔ)言,自由交換信息了。而這些正適應(yīng)了目前因特網(wǎng)的發(fā)展,適應(yīng)了人們溝通交流的需要。xml出現(xiàn)短短幾年就得到了廣泛的應(yīng)用,目前新推出的軟件幾乎都會(huì)支持xml。例如微軟的dot net系列軟件、office系列軟件等等。不出幾年,xml就會(huì)代替html成為因特網(wǎng)上標(biāo)準(zhǔn)的標(biāo)記語(yǔ)言。本系統(tǒng)所有配置文件全部使用xml語(yǔ)言,便于系統(tǒng)解析,減小開(kāi)發(fā)系統(tǒng)的復(fù)雜度,減少系統(tǒng)處理時(shí)間,減少網(wǎng)絡(luò)傳送量,從而提高效率。1.3 本系統(tǒng)的選擇方案本系統(tǒng)應(yīng)用于因特網(wǎng),并且要滿(mǎn)足一個(gè)學(xué)校幾千學(xué)生考試的需要,因此本系統(tǒng)決定采用b/s結(jié)構(gòu),并且數(shù)據(jù)庫(kù)使用mysql,開(kāi)發(fā)框架為ssh(struts2+sping2.5+hibernate3.2),編碼目錄層次采用:com.itceping.action(與struts有關(guān)的);業(yè)務(wù)處理層:com.itceping.service;數(shù)據(jù)操作層:com.itceping.dao;實(shí)體類(lèi):com.itceping.po(跟hibernate有關(guān)的);工具類(lèi):com.itceping.util。1.4 建模工具的選擇以u(píng)ml語(yǔ)言建模應(yīng)該是以rational公司的rose工具為最好。不過(guò)rose太貴了,并且rose比較龐大,使用不是太方便。sybase公司出品的powerdesigner建模工具也支持uml,還提供一個(gè)45天的試用版,在數(shù)據(jù)庫(kù)建模上也有他獨(dú)到的地方。因此建模工具就選用powerdesigner。2 基于uml的系統(tǒng)分析 2.1用例圖2.1.1 用戶(hù)關(guān)系圖2.1.2 系統(tǒng)用例圖2.2 順序圖2.2.1 老師活動(dòng)順序圖2.2.2考生活動(dòng)順序圖2.3 類(lèi)圖3 數(shù)據(jù)庫(kù)的分析設(shè)計(jì)3.1 圖3.2 表設(shè)計(jì)3.2.1 用戶(hù)表設(shè)計(jì)名稱(chēng)類(lèi)型長(zhǎng)度pk?useridint10是usernamevarchar45passwordvarchar45idadmintinyint1sql語(yǔ)句:create table user ( userid int(10) unsigned not null auto_increment, username varchar(45) not null, password varchar(45) not null, isadmin tinyint(1) not null default 0, primary key (userid), unique key usename using btree (username) )3.2.2 課程表設(shè)計(jì)名稱(chēng)類(lèi)型長(zhǎng)度pk?idint10是namevarchar100codevarchar100destextsql語(yǔ)句:create table course ( id int(10) not null auto_increment, name varchar(100) not null, code varchar(100) default null, des text, primary key (id) )3.2.3 試題表設(shè)計(jì)名稱(chēng)類(lèi)型長(zhǎng)度pk?idint10是contentmediumtexttypevarchar32course_idint10scoreint2ansvarchar10optivarchar1024sql語(yǔ)句:create table question ( id int(10) not null auto_increment, content mediumtext, type varchar(32) default null, course_id int(10) default null, score int(2) default null, ans varchar(10) default null, opti varchar(1024) default null, primary key (id), key fk_question (course_id), constraint question_ibfk_1 foreign key (course_id) references course (id) )3.2.4 試卷表設(shè)計(jì)名稱(chēng)類(lèi)型長(zhǎng)度pk?idint11是fchar2sql語(yǔ)句:create table paper ( id int(11) not null auto_increment, f char(2) not null default 0, primary key (id) )3.2.5 成績(jī)表設(shè)計(jì)名稱(chēng)類(lèi)型長(zhǎng)度pk?idint4是user_namevarchar10paper_idint4scoreint4date_timevarchar50sql語(yǔ)句:create table grade ( id int(4) not null auto_increment, user_name varchar(10) default null, paper_id int(4) default null, score int(4) default null, date_time varchar(50) default null, primary key (id) )3.2.6 試卷試題表名稱(chēng)類(lèi)型長(zhǎng)度pk?idint11是paper_idint11question_idint11sql語(yǔ)句:create table paper_question ( id int(11) not null auto_increment, paper_id int(11) not null, question_id int(11) not null, primary key (id), key fk_paper_question (paper_id), key fk_paper_question1 (question_id), constraint paper_question_ibfk_1 foreign key (paper_id) references paper (id), constraint paper_question_ibfk_2 foreign key (question_id) references question (id) )4 系統(tǒng)實(shí)現(xiàn)4.1 開(kāi)發(fā)平臺(tái)的選擇 本系統(tǒng)由于是采用的微軟公司所推出的分布式web應(yīng)用構(gòu)架,所以開(kāi)發(fā)平臺(tái)使用了windowsxp,數(shù)據(jù)庫(kù)選用mysql,web服務(wù)器程序使用tomcat6.
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年粵教滬科版選擇性必修3歷史上冊(cè)月考試卷含答案
- 2025年度生態(tài)農(nóng)業(yè)門(mén)面房購(gòu)置與農(nóng)產(chǎn)品銷(xiāo)售合同4篇
- 2025年華師大新版七年級(jí)生物下冊(cè)月考試卷
- 2025年滬科新版必修1語(yǔ)文上冊(cè)月考試卷含答案
- 2025年度數(shù)字經(jīng)濟(jì)年薪制工資合同3篇
- 物業(yè)服務(wù)商與商戶(hù)就2025年度物業(yè)管理簽訂的合同2篇
- 二零二五年度南京市二手房買(mǎi)賣(mài)合同附件清單4篇
- 二零二五年度木材加工鋼材買(mǎi)賣(mài)居間合同附帶質(zhì)量監(jiān)管協(xié)議3篇
- 專(zhuān)屬2024人力資源代招服務(wù)合作合同版
- 2025年度能源市場(chǎng)交易代理服務(wù)合同4篇
- 2025年高考物理復(fù)習(xí)壓軸題:電磁感應(yīng)綜合問(wèn)題(解析版)
- 012主要研究者(PI)職責(zé)藥物臨床試驗(yàn)機(jī)構(gòu)GCP SOP
- 2024年個(gè)人車(chē)位租賃合同經(jīng)典版(二篇)
- 農(nóng)耕研學(xué)活動(dòng)方案種小麥
- 2024年佛山市勞動(dòng)合同條例
- 污水管網(wǎng)規(guī)劃建設(shè)方案
- 城鎮(zhèn)智慧排水系統(tǒng)技術(shù)標(biāo)準(zhǔn)
- 采購(gòu)管理制度及流程采購(gòu)管理制度及流程
- 五年級(jí)美術(shù)下冊(cè)第9課《寫(xiě)意蔬果》-優(yōu)秀課件4人教版
- 節(jié)能降耗課件
- 尼爾森數(shù)據(jù)市場(chǎng)分析報(bào)告
評(píng)論
0/150
提交評(píng)論