当前位置: 首页 > news >正文

基于SpringBoot+Vue的在线考试系统设计与实现(源码+LW+部署文档等)

博主介绍:  

大家好,我是一名在Java圈混迹十余年的程序员,精通Java编程语言,同时也熟练掌握微信小程序、Python和Android等技术,能够为大家提供全方位的技术支持和交流。
我擅长在JavaWeb、SSH、SSM、SpringBoot等框架下进行项目开发,具有丰富的项目经验和开发技能。我的代码风格规范、优美、易读性强,同时也注重性能优化、代码重构等方面的实践和经验总结。
我有丰富的成品Java毕设项目经验,能够为学生提供各类个性化的开题框架和实际运作方案。同时我也提供相关的学习资料、程序开发、技术解答、代码讲解、文档报告等专业服务。

🍅技术交流和部署相关看文章末尾!🍅

👇🏻 精彩专栏推荐订阅👇🏻 不然下次找不到哟

Java项目精品实战案例(300套)

在线考试系统源码下载地址:

https://download.csdn.net/download/weixin_54828627/87790914

一、效果演示

基于Spring Boot的在线考试系统演示视频

二、前言介绍

网络的广泛应用给生活带来了十分的便利。所以把在线考试管理与现在网络相结合,利用java技术建设在线考试系统,实现在线考试的信息化管理则对于进一步提高在线考试管理发展,丰富在线考试管理经验能起到不少的促进作用。

在线考试系统能够通过互联网得到广泛的、全面的宣传,让尽可能多的教师和学生了解和熟知在线考试系统的便捷高效,不仅为高校考试提供了服务,而且也推广了自己。对于在线考试而言,若拥有自己的系统,通过系统得到更好的管理,同时提升了形象。

三、主要技术

技术名作用
SpringBoot后端框架
Vue前端框架
MySQL数据库

四、系统设计(部分)

4.1、主要功能模块设计         

五、功能截图

5.1、系统功能模块

在线考试系统,在系统首页可以查看首页,课程信息,在线考试,通知公告,个人中心,后台管理等内容,并进行详细操作,如图5-1所示。

图5-1系统首页界面图

学生注册

图5-2学生注册界面图

教师注册

图5-3教师注册界面图

个人中心

图5-4个人中心界面图

课程信息

图5-5课程信息界面图

5.2、后台登录

进入系统前在登录页面根据要求填写用户名和密码,选择角色等信息,点击登录进行系统操作,如图5-6所示。

图5-6后台登录界面图

5.2.1、管理员功能

管理员登录系统后,可以对首页,个人中心,学生管理,教师管理,课程分类管理,课程信息管理,在线考试管理,试题管理,习题管理,考试管理等功能进行相应的操作,如图5-7所示。

图5-7管理员功能界面图

学生管理

图5-8学生管理界面图

教师管理

图5-9教师管理界面图

课程信息管理

图5-10课程信息管理界面图

试题管理

图5-11试题管理界面图

5.2.2、教师功能

教师登录进入在线考试系统可以对首页,个人中心,课程信息管理,试题管理,在线考试管理,考试管理等功能进行相应操作,如图5-12所示。

图5-12教师功能界面图

个人中心

图5-13个人中心界面图

课程信息管理

图5-14课程信息管理界面图

在线考试管理

图5-15在线考试管理界面图 

5.2.3、学生功能

学生登录进入在线考试系统可以对首页、个人中心等功能进行相应操作,如图5-16所示。

图5-16学生功能界面图

这里功能太多,就不一一展示啦~

六、数据库设计(部分)

ER图是由实体及其关系构成的图,通过E/R图可以清楚地描述系统涉及到的实体之间的相互关系。在系统中对一些主要的几个关键实体如下图:

(1)课程信息E/R图如下所示:

图6-1课程信息E/R图

 (2)在线考试E/R图如下所示:

图6-2在线考试E/R图

七、代码参考

package com.controller;import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;import com.entity.ExamquestionEntity;
import com.entity.view.ExamquestionView;import com.service.ExamquestionService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;/*** 试题表* 后端接口* @author * @email * @date 2022-03-18 10:34:29*/
@RestController
@RequestMapping("/examquestion")
public class ExamquestionController {@Autowiredprivate ExamquestionService examquestionService;/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,ExamquestionEntity examquestion,HttpServletRequest request){EntityWrapper<ExamquestionEntity> ew = new EntityWrapper<ExamquestionEntity>();PageUtils page = examquestionService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, examquestion), params), params));return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,ExamquestionEntity examquestion, HttpServletRequest request){EntityWrapper<ExamquestionEntity> ew = new EntityWrapper<ExamquestionEntity>();PageUtils page = examquestionService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, examquestion), params), params));return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( ExamquestionEntity examquestion){EntityWrapper<ExamquestionEntity> ew = new EntityWrapper<ExamquestionEntity>();ew.allEq(MPUtil.allEQMapPre( examquestion, "examquestion")); return R.ok().put("data", examquestionService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(ExamquestionEntity examquestion){EntityWrapper< ExamquestionEntity> ew = new EntityWrapper< ExamquestionEntity>();ew.allEq(MPUtil.allEQMapPre( examquestion, "examquestion")); ExamquestionView examquestionView =  examquestionService.selectView(ew);return R.ok("查询试题表成功").put("data", examquestionView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){ExamquestionEntity examquestion = examquestionService.selectById(id);return R.ok().put("data", examquestion);}/*** 前端详情*/@IgnoreAuth@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){ExamquestionEntity examquestion = examquestionService.selectById(id);return R.ok().put("data", examquestion);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody ExamquestionEntity examquestion, HttpServletRequest request){examquestion.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(examquestion);examquestionService.insert(examquestion);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody ExamquestionEntity examquestion, HttpServletRequest request){examquestion.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(examquestion);examquestionService.insert(examquestion);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody ExamquestionEntity examquestion, HttpServletRequest request){//ValidatorUtils.validateEntity(examquestion);examquestionService.updateById(examquestion);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){examquestionService.deleteBatchIds(Arrays.asList(ids));return R.ok();}/*** 提醒接口*/@RequestMapping("/remind/{columnName}/{type}")public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map<String, Object> map) {map.put("column", columnName);map.put("type", type);if(type.equals("2")) {SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");Calendar c = Calendar.getInstance();Date remindStartDate = null;Date remindEndDate = null;if(map.get("remindstart")!=null) {Integer remindStart = Integer.parseInt(map.get("remindstart").toString());c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart);remindStartDate = c.getTime();map.put("remindstart", sdf.format(remindStartDate));}if(map.get("remindend")!=null) {Integer remindEnd = Integer.parseInt(map.get("remindend").toString());c.setTime(new Date());c.add(Calendar.DAY_OF_MONTH,remindEnd);remindEndDate = c.getTime();map.put("remindend", sdf.format(remindEndDate));}}Wrapper<ExamquestionEntity> wrapper = new EntityWrapper<ExamquestionEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}int count = examquestionService.selectCount(wrapper);return R.ok().put("count", count);}}

八、技术交流

大家点赞、收藏、关注、评论啦 、查看文章结尾👇🏻获取联系方式👇🏻

精彩专栏推荐订阅:在下方专栏👇🏻👇🏻👇🏻👇🏻

Java项目精品实战案例(300套)

 ​​​​

http://www.lryc.cn/news/112747.html

相关文章:

  • 用Rust实现23种设计模式之 外观模式
  • 使用一个python脚本抓取大量网站【1/3】
  • Session与Cookie的区别(五)
  • 【Linux】网络编程套接字
  • 【C++】语法小课堂 --- auto关键字 typeid查看实际类型 范围for循环 空指针nullptr
  • Vercel 部署的项目发现APIkeys过期了怎么办
  • 【HMS Core】推送报错907135701、分析数据查看
  • Air32 | 合宙Air001单片机内部FLASH读写示例
  • C语言基本语法-第一章
  • 八、Spring 整合 MyBatis
  • Flutter Flar动画实战
  • A stop job is running for xxxxxx
  • C++入门之stl六大组件--List源码深度剖析及模拟实现
  • windows下以指定用户访问SMB服务器进行读写
  • 数组根据属性去重
  • 无损音乐从哪找?五个网站+免费下载,你确定不来看看?
  • 2023华数杯数学建模B题思路模型论文分析
  • K8S系列文章之 使用Kind部署K8S 并发布服务
  • 从0到1开发go-tcp框架【4实战片— — 开发MMO之玩家聊天篇】
  • 无重复字符的最长子串 LeetCode热题100
  • Docker搭建zookeeper
  • LeetCode 热题 100 JavaScript--160. 相交链表
  • AWS S3 协议对接 minio/oss 等
  • 手机便签内容不见了怎么恢复正常?
  • 【架构】Java 系统架构演进的思考
  • Python爬虫——解析_jsonpath
  • 华为发布数字资产继承功能
  • 阿里云NAS文件存储基本介绍与购买使用
  • 大模型使用——超算上部署LLAMA-2-70B-Chat
  • 机器学习笔记:李宏毅ChatGPT课程1:刨析ChatGPT