• 大小: 87.53MB
    文件类型: .zip
    金币: 2
    下载: 0 次
    发布日期: 2024-01-29
  • 语言: Java
  • 标签:

资源简介

三大框架SSM实现慕课网项目,以及七牛云对象存储,10天javaweb课设项目,前台完全仿造慕课网,后台有视频模块,订单模块,用户模块,搜索模块,具体功能有,用户登录,用户订单查询,视频搜索,加入购物车,订单管理,视频试看,个人视频管理,我的学习视频中心,视频上传,个人信息修改,发送邮箱实现账户安全管理

资源截图

代码片段和文件信息

package main.controllers;

import com.google.gson.Gson;
import main.dao.comment;
import main.dao.movie;
import main.service.MovieServiceImpl;
import org.apache.commons.io.FileUtils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathxmlApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.UUID;

@Controller
@RequestMapping(“/movie“)
public class MovieRequest {
     @RequestMapping(value = “upload“method = RequestMethod.POST)
     public String upload(@RequestParam(value = “name“required=false) String name @RequestParam(value = “file“) MultipartFile file
                             @RequestParam(value = “price“)double price @RequestParam(value = “description“)String description)
             throws IOException
     {
         System.out.println(“成功访问“);
         System.out.println(name+“ “+price+“ “+description);
         ApplicationContext ac = new ClassPathxmlApplicationContext(“applicationcontext.xml“);
         MovieServiceImpl demo=ac.getBean(“MovieServiceImpl“MovieServiceImpl.class);
         //获取原文件名
         String fileName=file.getOriginalFilename();
         //截取文件的扩展名
         String suffix=fileName.substring(fileName.lastIndexOf(‘.‘));
         //获取随机的字符串以区别不同的文件给文件命名
         String uuid= UUID.randomUUID().toString();
         FileUtils.copyInputStreamToFile(file.getInputStream()new File(“I:/项目视频/“+name+“_“+uuid+suffix));
         try{
             System.out.println(demo.uploadqiniu(“I://项目视频/“+name+“_“+uuid+suffixnamepricedescription));
         }catch (Exception e){
             e.printStackTrace();
         }
         return “redirect:/upload.jsp“;
     }
     @ResponseBody
     @RequestMapping(“/down_movie.do“)
     public int down_movie(String movie_id)
     {
         ApplicationContext ac = new ClassPathxmlApplicationContext(“applicationcontext.xml“);
         MovieServiceImpl demo=ac.getBean(“MovieServiceImpl“MovieServiceImpl.class);
         return demo.down_movie(movie_id);
     }
     @ResponseBody
     @RequestMapping(“/passmovie.do“)
     public int passmovie(String movie_id)
     {
         ApplicationContext ac = new ClassPathxmlApplicationContext(“applicationcontext.xml“);
         MovieServiceImpl demo=ac.getBean(“MovieServiceImpl“MovieServiceImpl.class);
         return demo.passmovie(movie_id);
     }
     @ResponseBody
     @RequestMapping(“/updatemovie_imformation.do“)
     public int updatemovi

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-12-22 00:22  bookstore\
     目录           0  2019-12-22 00:22  bookstore\.idea\
     目录           0  2019-12-22 00:22  bookstore\.idea\artifacts\
     文件        6796  2019-12-17 08:47  bookstore\.idea\artifacts\bookstore_war_exploded.xml
     文件         542  2019-12-20 17:35  bookstore\.idea\compiler.xml
     文件         209  2019-07-20 19:39  bookstore\.idea\encodings.xml
     文件         660  2019-07-20 19:39  bookstore\.idea\misc.xml
     文件       86265  2019-12-20 17:40  bookstore\.idea\workspace.xml
     文件          81  2019-07-20 18:34  bookstore\bookstore.iml
     目录           0  2019-12-22 00:22  bookstore\out\
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\bookstore_war_exploded\
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\bookstore_war_exploded\meta-INF\
     文件          92  2019-12-20 17:38  bookstore\out\artifacts\bookstore_war_exploded\meta-INF\MANIFEST.MF
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\meta-INF\
     文件          16  2019-12-17 08:48  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\meta-INF\bookstore.kotlin_module
     文件        2670  2019-12-17 08:48  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\applicationcontext.xml
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\controllers\
     文件        5489  2019-12-19 21:26  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\controllers\MovieRequest.class
     文件        3205  2019-12-19 22:37  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\controllers\OrderRequest.class
     文件       10037  2019-12-20 10:13  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\controllers\UserRequest.class
     目录           0  2019-12-22 00:22  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\dao\
     文件         723  2019-12-17 08:48  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\dao\MailAuthenticator.class
     文件        2232  2019-12-18 11:38  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\dao\StudyView.class
     文件         373  2019-12-19 22:43  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\dao\Test.class
     文件        1165  2019-12-17 08:48  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\dao\car.class
     文件        1925  2019-12-17 08:48  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\dao\comment.class
     文件        1551  2019-12-17 08:48  bookstore\out\artifacts\bookstore_war_exploded\WEB-INF\classes\main\dao\firstpicture.class
............此处省略920个文件信息

评论

共有 条评论

相关资源