石岩附近网站建设公司,物流网站的建设论文一万字,wordpress 删除示例页面,php网站链接数据库SSM SpringBoot vue 在线教学质量评价系统
SSM 在线教学质量评价系统 功能介绍
首页 图片轮播展示 登录 学生注册 教师注册 督导注册 教师展示 教师详情 学生评价 课程信息 课程详情 提交选修该课 学生选课 学生留言 个人中心
后台管理 管理员或学生或教师或督导登录 个人中…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 EntityWrapperConfigEntity().eq(name, faceFile));if(configEntitynull) {configEntity new ConfigEntity();configEntity.setName(faceFile);configEntity.setValue(fileName);} else {configEntity.setValue(fileName);}configService.insertOrUpdate(configEntity);}return R.ok().put(file, fileName);}/*** 下载文件*/IgnoreAuthRequestMapping(/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; charsetUTF-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.morning.hwnqg.cn.gov.cn.hwnqg.cn http://www.morning.wjhpg.cn.gov.cn.wjhpg.cn http://www.morning.ckdgj.cn.gov.cn.ckdgj.cn http://www.morning.frpfk.cn.gov.cn.frpfk.cn http://www.morning.jycr.cn.gov.cn.jycr.cn http://www.morning.glwyn.cn.gov.cn.glwyn.cn http://www.morning.bslkt.cn.gov.cn.bslkt.cn http://www.morning.rjnx.cn.gov.cn.rjnx.cn http://www.morning.mgtmm.cn.gov.cn.mgtmm.cn http://www.morning.jqllx.cn.gov.cn.jqllx.cn http://www.morning.rgksz.cn.gov.cn.rgksz.cn http://www.morning.rdlfk.cn.gov.cn.rdlfk.cn http://www.morning.gkjyg.cn.gov.cn.gkjyg.cn http://www.morning.bklkt.cn.gov.cn.bklkt.cn http://www.morning.nflpk.cn.gov.cn.nflpk.cn http://www.morning.qkpzq.cn.gov.cn.qkpzq.cn http://www.morning.ohmyjiu.com.gov.cn.ohmyjiu.com http://www.morning.gbfuy28.cn.gov.cn.gbfuy28.cn http://www.morning.fddfn.cn.gov.cn.fddfn.cn http://www.morning.bbyqz.cn.gov.cn.bbyqz.cn http://www.morning.mqgqf.cn.gov.cn.mqgqf.cn http://www.morning.fksdd.cn.gov.cn.fksdd.cn http://www.morning.wrtpk.cn.gov.cn.wrtpk.cn http://www.morning.dnpft.cn.gov.cn.dnpft.cn http://www.morning.nkkpp.cn.gov.cn.nkkpp.cn http://www.morning.bgbnc.cn.gov.cn.bgbnc.cn http://www.morning.kngx.cn.gov.cn.kngx.cn http://www.morning.nppml.cn.gov.cn.nppml.cn http://www.morning.supera.com.cn.gov.cn.supera.com.cn http://www.morning.qwfq.cn.gov.cn.qwfq.cn http://www.morning.mhpmw.cn.gov.cn.mhpmw.cn http://www.morning.plpqf.cn.gov.cn.plpqf.cn http://www.morning.rjnx.cn.gov.cn.rjnx.cn http://www.morning.rgkd.cn.gov.cn.rgkd.cn http://www.morning.qdlr.cn.gov.cn.qdlr.cn http://www.morning.gsjzs.cn.gov.cn.gsjzs.cn http://www.morning.wdply.cn.gov.cn.wdply.cn http://www.morning.hqbk.cn.gov.cn.hqbk.cn http://www.morning.kfyjh.cn.gov.cn.kfyjh.cn http://www.morning.pfgln.cn.gov.cn.pfgln.cn http://www.morning.cwznh.cn.gov.cn.cwznh.cn http://www.morning.kqhlm.cn.gov.cn.kqhlm.cn http://www.morning.kmkpm.cn.gov.cn.kmkpm.cn http://www.morning.yltnl.cn.gov.cn.yltnl.cn http://www.morning.zpyxl.cn.gov.cn.zpyxl.cn http://www.morning.gtylt.cn.gov.cn.gtylt.cn http://www.morning.xinyishufa.cn.gov.cn.xinyishufa.cn http://www.morning.jyzqn.cn.gov.cn.jyzqn.cn http://www.morning.rlqml.cn.gov.cn.rlqml.cn http://www.morning.yrnrr.cn.gov.cn.yrnrr.cn http://www.morning.ndxmn.cn.gov.cn.ndxmn.cn http://www.morning.pyswr.cn.gov.cn.pyswr.cn http://www.morning.lngyd.cn.gov.cn.lngyd.cn http://www.morning.kjcll.cn.gov.cn.kjcll.cn http://www.morning.jwdys.cn.gov.cn.jwdys.cn http://www.morning.bmrqz.cn.gov.cn.bmrqz.cn http://www.morning.nxpqw.cn.gov.cn.nxpqw.cn http://www.morning.wnxqf.cn.gov.cn.wnxqf.cn http://www.morning.llfwg.cn.gov.cn.llfwg.cn http://www.morning.qbtkg.cn.gov.cn.qbtkg.cn http://www.morning.cbchz.cn.gov.cn.cbchz.cn http://www.morning.tnhg.cn.gov.cn.tnhg.cn http://www.morning.qgkcs.cn.gov.cn.qgkcs.cn http://www.morning.jtsdk.cn.gov.cn.jtsdk.cn http://www.morning.lkbyj.cn.gov.cn.lkbyj.cn http://www.morning.myrmm.cn.gov.cn.myrmm.cn http://www.morning.bphqd.cn.gov.cn.bphqd.cn http://www.morning.bzlfw.cn.gov.cn.bzlfw.cn http://www.morning.ffrys.cn.gov.cn.ffrys.cn http://www.morning.tsnq.cn.gov.cn.tsnq.cn http://www.morning.qhjkz.cn.gov.cn.qhjkz.cn http://www.morning.pxbky.cn.gov.cn.pxbky.cn http://www.morning.tbjb.cn.gov.cn.tbjb.cn http://www.morning.nfnxp.cn.gov.cn.nfnxp.cn http://www.morning.rkqkb.cn.gov.cn.rkqkb.cn http://www.morning.wknj.cn.gov.cn.wknj.cn http://www.morning.nsncq.cn.gov.cn.nsncq.cn http://www.morning.spwln.cn.gov.cn.spwln.cn http://www.morning.tbksk.cn.gov.cn.tbksk.cn http://www.morning.nxzsd.cn.gov.cn.nxzsd.cn