没有合适的资源?快使用搜索试试~ 我知道了~
基于微服务的软件工程专业课程 在线考试系统论文.docx
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 7 浏览量
2023-08-08
18:04:22
上传
评论
收藏 4.1MB DOCX 举报
温馨提示
试读
92页
基于微服务的软件工程专业课程 在线考试系统论文.docx
资源推荐
资源详情
资源评论
I
摘 要
随着信息技术的发展,以计算机网络技术为支撑的在线考试系统成为了“互联网
+教育”领域的热门研究课题。但是当前的在线考试系统主要是基于传统的单体架构,
此类系统随着需求的增加,易出现功能耦合严重、代码臃肿维护困难、开发周期长、
业务伸缩性差等问题。微服务是近年来出现的一种新型分布式软件架构,为了解决以
上问题,本文提出基于微服务的在线考试系统开发模式。
论文面向大学软件工程专业课程,设计并实现一个基于微服务框架的在线考试系
统。论文从系统需求分析、系统总体设计、功能模块详细设计、代码实现、系统测试
等几个方面阐述了系统开发的整个过程。论文根据业务逻辑的不同,将整个系统拆分
为四个独立的业务微服务,包括学生微服务、教师微服务、管理员微服务和通用模块
微服务。除了业务微服务,论文还运用了 Spring Cloud 的 Eureka、Zuul 和 Feign 等组
件,分别实现了服务注册发现、路由网关转发和声明式接口调用等功能。
论文不仅实现了在线考试系统的基本功能,还针对现有考试系统的不足加以分析
并改进,加入了一些特色功能,如:在线编译、专业考证、防作弊、随机组卷、自动
阅卷、数据图形分析、考后交流等。
论文来源于 2018 年湖南省普通高校教改研究项目《应用型本科“Java 程序设计”
小班 SPOC 教学改革与实践》。论文以在线考试与微服务架构相结合的新形式,优化
了现有考试功能,并融入了特色化模块。应用表明,该系统具有安全性、可用性、高
性能等特点,同时,该系统加强了学生自主学习能力和学习兴趣,提高了学生实践编
程水平,有效提升了教学效率。
关键词:在线考试;Spring Cloud;微服务
II
ABSTRACT
With the development of information technology, online examination system
supported by computer network technology has become a hot research topic in the field of
"Internet + education". However, the current online examination system is mainly based on
the traditional single architecture. With the increase of demand, such a system is prone to
serious functional coupling, difficult code overstaffed maintenance, long development
cycle, poor business scalability and other problems. Micro service is a new distributed
software architecture emerging in recent years. In order to solve the above problems, this
paper proposes an online examination system development model based on microservice.
This paper designs and implements an online examination system based on
microservice framework for university software engineering courses. This paper expounds
the whole process of system development from the aspects of system demand analysis,
system overall design, detailed design of functional modules, code implementation, system
test and so on. According to different business logic, the whole system is divided into four
independent business microservices, including student micro service, teacher micro
service, administrator micro service and general module micro service. In addition to the
business micro service, the paper also uses the components of Spring Cloud, such as
Eureka, Zuul and Feign, to realize the functions of service registration and discovery,
routing gateway forwarding and declarative interface invocation respectively.
This paper not only realizes the basic functions of the online examination system, but
also analyzes and improves the deficiencies of the existing examination system, adding
some characteristic functions, such as: online compilation, professional textual research,
anti-cheating, examination with the unit, automatic marking, data graph analysis,
post-examination communication and so on.
This paper is based on the teaching reform and practice of SPOC for small classes of
"Java Programming" for application-oriented undergraduate students, a research project of
education reform in universities of Hunan Province in 2018. The paper optimizes the
existing examination functions and integrates the characteristic module with the new form
of online examination and micro-service architecture. The application shows that the
system has the characteristics of security, availability and high performance. Meanwhile,
the system strengthens students' independent learning ability and interest, improves
students' practical programming level, and effectively improves teaching efficiency.
KEYWORDS:Online test;Spring Cloud;Micro service
III
目 录
诚信声明
摘要
ABSTRACT
1 绪论..................................................................................................................................1
1.1 研究背景与意义.....................................................................................................1
1.1.1 研究背景 ......................................................................................................1
1.1.2 研究意义 ......................................................................................................2
1.2 国内外研究现状.....................................................................................................3
1.2.1 国外研究现状 ..............................................................................................3
1.2.2 国内研究现状 ..............................................................................................3
1.2.3 研究现状评论 ..............................................................................................4
1.3 本章小结 .................................................................................................................4
2 相关技术介绍 ...............................................................................................................5
2.1 SSM 框架.................................................................................................................5
2.2 Spring Boot 框架 ....................................................................................................5
2.3 Spring Cloud 框架..................................................................................................5
2.3.1 Eureka 服务注册发现中心...........................................................................5
2.3.2 Feign 声明式接口调用.................................................................................5
2.3.3 Zuul 服务网关 ..............................................................................................6
2.4 MySQL 数据库 .......................................................................................................6
2.5 Tomcat 服务器........................................................................................................6
2.6 本章小结 .................................................................................................................6
3 系统需求分析 ...............................................................................................................7
3.1 微服务架构需求分析..............................................................................................7
3.2 业务微服务需求分析..............................................................................................7
3.2.1 学生微服务 ..................................................................................................7
3.2.2 教师微服务 ................................................................................................10
3.2.3 管理员微服务 ............................................................................................12
3.2.4 通用模块微服务 ........................................................................................14
3.3 非功能性需求分析...............................................................................................16
IV
3.4 本章小结 ...............................................................................................................17
4 系统总体设计 .............................................................................................................18
4.1 基于微服务的系统架构设计...............................................................................18
4.2 系统总体功能设计...............................................................................................19
4.2.1 系统总体结构 ............................................................................................19
4.2.2 系统总体处理流程 ....................................................................................21
4.3 数据库设计 ...........................................................................................................22
4.3.1 数据库概念设计 ........................................................................................22
4.3.2 数据库逻辑设计 ........................................................................................27
4.3.3 数据库表设计 ............................................................................................28
4.4 本章小结 ...............................................................................................................30
5 系统详细设计 .............................................................................................................31
5.1 微服务架构详细设计...........................................................................................31
5.1.1 微服务架构总览 ........................................................................................31
5.1.2 服务发现组件 ............................................................................................31
5.1.3 服务调度组件 ............................................................................................31
5.1.4 服务网关组件 ............................................................................................32
5.2 业务微服务详细设计...........................................................................................32
5.2.1 学生微服务 ................................................................................................32
5.2.2 教师微服务 ................................................................................................38
5.2.3 管理员微服务 ............................................................................................42
5.2.4 通用模块微服务 ........................................................................................47
5.3 本章小结 ...............................................................................................................51
6 系统实现.......................................................................................................................52
6.1 微服务架构实现...................................................................................................52
6.1.1 服务注册发现组件 ....................................................................................52
6.1.2 服务调度组件 ............................................................................................52
6.1.3 服务网关组件 ............................................................................................52
6.2 业务微服务实现...................................................................................................52
6.2.1 学生微服务 ................................................................................................52
6.2.2 教师微服务 ................................................................................................58
V
6.2.3 管理员微服务 ............................................................................................62
6.2.4 通用模块微服务 ........................................................................................67
6.3 本章小结 ...............................................................................................................70
7 系统测试.......................................................................................................................71
7.1 测试环境与测试目标...........................................................................................71
7.1.1 测试环境 ....................................................................................................71
7.1.2 测试目标 ....................................................................................................71
7.2 基础模块功能测试...............................................................................................71
7.2.1 服务注册发现测试 ....................................................................................71
7.2.2 声明式接口调用测试 ................................................................................72
7.2.3 路由转发测试 ............................................................................................72
7.3 业务微服务功能测试...........................................................................................73
7.3.1 学生微服务测试 ........................................................................................73
7.3.2 教师微服务测试 ........................................................................................75
7.3.3 管理员微服务测试 ....................................................................................77
7.3.4 通用模块微服务测试 ................................................................................81
7.4 测试结论 ................................................................................................................83
7.5 本章小结 ................................................................................................................83
8 结论................................................................................................................................84
8.1 总结 .......................................................................................................................84
8.2 展望 .......................................................................................................................84
参考文献 ...........................................................................................................................85
致谢.....................................................................................................................................87
剩余91页未读,继续阅读
资源评论
豆包程序员
- 粉丝: 3479
- 资源: 3504
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功