博主主页: 一点技术
**博主简介:**专注Java技术领域和毕业设计项目实战、Java微信小程序、安卓等技术开发,远程调试部署、代码讲解、文档指导、ppt制作等技术指导。技术范围: SpringBoot、Vue、SSM、HLMT、Jsp、PHP、Nodejs、Python、爬虫、数据可视化、小程序、安卓app、大数据、物联网、机器学习等设计与开发。
**主要内容:**功能设计、开题报告、任务书、中期检查PPT、系统功能实现、代码编写、论文编写和辅导、论文降重、长期答辩答疑辅导。感兴趣的可以先收藏起来,还有大家在毕设选题,项目以及论文编写等相关问题都可以给我留言咨询,希望帮助更多的人
🍅文末获取联系🍅
系统介绍:
该系统主要使用Springboot框架啊和MySQL数据库进行开发,Java易于学习和使用灵活。在校期间也接触过Springboot和MySQL数据库的课程,对此有一定的开发经验,因此开发难度不高,所以从技术上来说是可行的。
系统包含技术
后端:springboot
前端:vue、js、css等
开发工具:idea/vscode
数据库:mysql 5.7
JDK版本:jdk1.8
功能截图







视频演示
请文末卡片dd我获取更详细的演示视频
代码实现
java
@RequestMapping("adminVideoUpload")
public MsgResponse adminVideoUpload(@RequestParam MultipartFile file) {
String workplace = System.getProperty("user.dir");
String suffix = file.getOriginalFilename().substring(file.getOriginalFilename().indexOf("."));
String path = "/video/" + DateUtil.currentDateFormatString() + suffix;
File newFile = new File(workplace + "/src/main/resources/static" + path);
Long videoId = videoService.getVideoLastId(aVideoTitle);
videoService.updateVideoPath(path, videoId);
try {
file.transferTo(newFile);
return MsgResponse.success("上传成功", "http://localhost:8081" + path);
} catch (IOException e) {
e.printStackTrace();
return MsgResponse.fail("上传失败");
}
}
@RequestMapping("editThumbnailImageUpload")
public VueUtil editThumbnailImageUpload(@RequestParam MultipartFile avatar, Long videoId) {
String workplace = System.getProperty("user.dir");
String suffix = avatar.getOriginalFilename().substring(avatar.getOriginalFilename().indexOf("."));
String fileName = "video" + String.valueOf(videoId) + suffix;
File newFile = new File(workplace + "/src/main/resources/static/vimages/" + fileName);
videoService.adminUpdateVideoImage("/video/getVideoImage/" + fileName, videoId);
try {
avatar.transferTo(newFile);
System.out.println("success");
Object res = "http://localhost:8081/video/getVideoImage/video" + videoId + suffix;
return VueUtil.success("上传成功", res);
} catch (IOException e) {
e.printStackTrace();
return VueUtil.fail("上传失败");
}
}
@RequestMapping("thumbnailImageupload")
public VueUtil thumbnailImageupload(@RequestParam MultipartFile avatar) {
String workplace = System.getProperty("user.dir");
Long videoId = videoService.getVideoLastId(aVideoTitle);
String suffix = avatar.getOriginalFilename().substring(avatar.getOriginalFilename().indexOf("."));
String fileName = "video" + String.valueOf(videoId) + suffix;
File newFile = new File(workplace + "/src/main/resources/static/vimages/" + fileName);
videoService.adminUpdateVideoImage("/video/getVideoImage/" + fileName, videoId);
try {
avatar.transferTo(newFile);
System.out.println("success");
Object res = "http://localhost:8081/video/getVideoImage/video" + videoId + suffix;
return VueUtil.success("上传成功", res);
} catch (IOException e) {
e.printStackTrace();
return VueUtil.fail("上传失败");
}
}
}
源码获取
大家点赞、收藏、关注、评论啦 、查看 👇🏻获取联系方式👇🏻