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

SSM SpringBoot vue 在线教学质量评价系统

SSM SpringBoot vue 在线教学质量评价系统

SSM 在线教学质量评价系统 功能介绍

首页 图片轮播展示 登录 学生注册 教师注册 督导注册 教师展示 教师详情 学生评价 课程信息 课程详情 提交选修该课 学生选课 学生留言 个人中心

后台管理 管理员或学生或教师或督导登录 个人中心 学生管理 教师管理 督导管理 学生评价管理 课程信息管理 学生选课管理 教师授课管理 申请督导听课管理 督导评价管理 听课结果通知管理 听课通知邮件管理 学生留言管理 督导留言管理 轮播图管理

角色:学生 教师 督导 超级管理员

使用技术

  • SSM(Spring + SpringMVC + Mybaits)或SpringBoot框架

  • Mybaits

  • Mysql数据库

  • vue

功能展示

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

文件上传下载代码

FileController.java

package com.controller;import java.io.File;
import java.io.IOException;
import java.util.Date;import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;import com.annotation.IgnoreAuth;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.entity.ConfigEntity;
import com.entity.EIException;
import com.service.ConfigService;
import com.utils.R;/*** 上传文件映射表*/
@RestController
@RequestMapping("file")
@SuppressWarnings({"unchecked","rawtypes"})
public class FileController{@Autowiredprivate ConfigService configService;/*** 上传文件*/@RequestMapping("/upload")public R upload(@RequestParam("file") MultipartFile file, String type,HttpServletRequest request) throws Exception {if (file.isEmpty()) {throw new EIException("上传文件不能为空");}String fileExt = file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf(".")+1);String fileName = new Date().getTime()+"."+fileExt;File dest = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);file.transferTo(dest);if(StringUtils.isNotBlank(type) && type.equals("1")) {ConfigEntity configEntity = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));if(configEntity==null) {configEntity = new ConfigEntity();configEntity.setName("faceFile");configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put("file", fileName);}/*** 下载文件*/@IgnoreAuth@RequestMapping("/download")public void download(@RequestParam String fileName, HttpServletRequest request, HttpServletResponse response) {try {File file = new File(request.getSession().getServletContext().getRealPath("/upload")+"/"+fileName);if (file.exists()) {response.reset();response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName+"\"");response.setHeader("Cache-Control", "no-cache");response.setHeader("Access-Control-Allow-Credentials", "true");response.setContentType("application/octet-stream; charset=UTF-8");IOUtils.write(FileUtils.readFileToByteArray(file), response.getOutputStream());}} catch (IOException e) {e.printStackTrace();}}}

运行

创建数据库, 然后修改数据库连接相关信息。

配置tomcat运行

前台访问地址: http://localhost:8080/ssm/front/index.html

注册或使用账号:111 密码:111

后台访问地址:http://localhost:8080/ssm/admin/dist/index.html

管理员账号:liang 密码:liang

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

相关文章:

  • 如何使用Codecepticon对C#、VBA宏和PowerShell源代码进行混淆处理
  • delphi fmx android11,12删除照片
  • Android - API对应版本名称
  • 22.3.1 Educational Codeforces Round 144 (Rated for Div. 2) A~C
  • 【C#基础】C# 预处理器指令
  • 摸鱼用python获取弹幕的两种方式【前者简单,后者数据好看】
  • 【C++】继承与多态
  • 每日分享(微信社区小程序/h5/圈子论坛贴吧交友/博客/社交)
  • 第51章 初识第3方阿里云短信验证发送服务
  • CSGO社区服搭建服务器架设游戏服务端教程
  • 【Linux学习】基础IO——系统调用 | 文件描述符fd | 重定向
  • PLC实验—西门子S7 1200读取超声波传感器数据
  • 一次Linux系统密码修改失败事件
  • C语言循环控制语句Break,goto,continue语句讲解
  • Zabbix“专家坐诊”第183期问答汇总
  • 以太网协议和DNS
  • 【设计模式】原型模式与建造者模式
  • QT之Http请求
  • 何谓dB , dB怎么理解?
  • 【数据聚类|深度聚类】Unsupervised Deep Embedding for Clustering Analysis(DEC)论文研读
  • Nuxt.js项目开发过程遇到的问题以及对Nuxt.js的学习与总结
  • JavaSE:异常机制
  • Go mockito 使用说明 (github/mockey)
  • Spring Boot+Vue前后端分离项目练习01之网盘项目的搭建
  • 超详细MySQL(免安装版)安装与配置
  • STM32F1,F4,L1系列禁止JTAG和SW引脚方法
  • NVIDIA CUDA初级教程视频学习笔记1
  • CEC2005:星雀优化算法(Nutcracker optimizer algorithm,NOA)求解CEC2005(提供MATLAB代码)
  • 工作实战之密码防重放攻击
  • 如何编写测试用例?