摘 要

随着信息技术的发展,管理系统越来越成熟,各种企事业单位使用各种类型的管理系统来提高工作效率,从而降低手工操作的弊端。我国政府一直以来都非常重视高校教育的发展,近几年来高校学生人数逐渐增加,对在线考试的需求越来越多。因此,通过开发基于java的在线考试系统来提高学习效率,增强考试题目的理解力,通过系统跟踪学生的考试情况,并提高了在线考试管理者的工作效率,高校学生也可以通过系统查询个人的考试记录情况。

基于java的在线考试系统利用Java框架开发的一款管理系统,数据存储到MySQL中。本文先充分调查基于java的在线考试系统的需求分析,深入剖析系统应该具有的功能,并设计完善的数据库。利用成熟的开发技术完成编码工作,最后进行投入前的测试工作。最终,完成前台和后台的基于java的在线考试系统的功能,主要包括高校学生信息管理、考试题目管理、考试管理、成绩管理等,通过前后台实现数据的传递。

关键词:高校;在线考试;考试系统;B/S;Java


 

Abstract

With the development of information technology, the management system is becoming more and more mature. Various enterprises and institutions use various types of management systems to improve work efficiency and reduce the disadvantages of manual operation. Our government has always attached great importance to the development of college education. In recent years, the number of college students has gradually increased, and the demand for online examinations is increasing. Therefore, the online examination system based on java is developed to improve the learning efficiency, enhance the understanding of the examination questions, track the examination situation of students through the system, and improve the working efficiency of the online examination manager. College students can also query the personal examination records through the system.

The java-based online examination system uses a management system developed by the Java framework to store data in MySQL. This paper first fully investigates the demand analysis of the online examination system based on java, deeply analyzes the functions that the system should have, and designs a perfect database. Use mature development technology to complete the coding work, and finally carry out the test work before the investment. Finally, complete the functions of the java-based online examination system at the front and back ends, mainly including university student information management, examination topic management, examination management, and score management, and realize data transmission through the front and back ends.


Keywords: universities; Online examination; Examination system; B/S;Java


 

目 录

摘 要 I

Abstract I

1 引言 1

1.1系统开发背景 1

1.2系统开发意义 1

1.4本文研究内容 2

2系统相关技术 3

2.1 Java技术 3

2.2 MySQL数据库 3

2.3 Json数据 4

3需求分析 5

3.1 功能需求分析 5

3.2 系统主要业务流程 7

3.3 非功能需求分析 9

4 系统设计 11

4.1 系统体系结构 11

4.2 系统功能结构 12

4.2.1管理员功能设计 12

4.2.2老师功能设计 12

4.2.3考生用户功能设计 13

4.3 数据库设计 13

4.3.1数据库E-R图 13

4.3.2数据库表设计 13

5 系统实现 17

5.1学生端功能实现 17

5.1.1 考生登录功能实现 17

5.1.2修改个人密码 17

5.1.查看试卷信息 18

5.1.4在线考试功能 18

5.1.5我的考试记录功能 19

5.2管理员和老师功能实现 20

5.2.1课程信息管理功能 20

5.2.2考生信息管理功能 21

5.3.3题库信息管理功能 21

5.3.4试卷信息管理功能 22

6 系统测试 24

6.1测试目的 24

6.2测试用例 24

6.3测试分析 27

结论 28

参考文献 29

致  谢 30


基于java的在线考试系统使用MVC框架进行设计,这种框架采用了分层模式,基于MVC思想,具体包括视图层、业务逻辑层和持久层。分层模式的主要思想是高内聚,低耦合,方便系统的维护扩展,便于理解代码,适合团队的开发。在企业级开发中受到了广泛的欢迎,分层的逻辑代码量较大,不利于单一功能的修改。如果增加某一功能的字段,需要从持久层开始直到页面层,都需要进行维护,也正是因为此,增加了数据传输的安全性以及相对完整性。

 

Controller层的数据主要是通过调用Service层进行处理,并得到结果,然后对结果进行保存,可以分析结果数据,判断结果是否符合预期,最终将信息返回到View层中。在接口层也需要先定义功能实现的类,并定义接口的参数和返回值,比如数据库的增删改查,数据统计,数据分类处理。在接口实现类中对接口方法进行具体的实现,在方法实现中调用Dao层的方法,并传入对应的参数,得到结果后返回信息到Controller层中。

在基于java的在线考试系统后台逻辑中增加了Web端的系统接口。本系统主要的接口设计包括用户接口、试题接口、考试接口、成绩查询接口。

在服务器端的接口方法中,都是通过返回JSON数据,Web对接口进行调用,然后序列化对象查看返回值的状态。

基于java的在线考试系统的设计-计算机毕业设计源码+LW文档_考试系统

基于java的在线考试系统的设计-计算机毕业设计源码+LW文档_java_02