• 大小: 41.04MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-22
  • 语言: Java
  • 标签:

资源简介

java源码实现视频在线播放和播放本地资源,ssm框架+mysql数据库

资源截图

代码片段和文件信息

package com.playvideo.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.playvideo.entity.VideoList;
import com.playvideo.service.SelectVideoService;

@Controller
public class SelectVideoController {
@Resource
// 注入Service对象
private SelectVideoService selectVideoService;

/**
 * 首页
 * 
 * @param hsr
 * @return
 */
@RequestMapping(“index“)
public String login() {
return “/video/list_page.html“;
}

/**
 * 搜索影片
 * 
 * @param hsr
 * @return
 */
@ResponseBody
// JSON输出
@RequestMapping(“select_video“)
public List select_meau(HttpServletRequest hsr String videoName) {
List list = selectVideoService
.selectUrlByVideoName(videoName);
return list;
}

/**
 * 搜索所有影片
 * 
 * @param hsr
 * @return
 */
@ResponseBody
// JSON输出
@RequestMapping(“select_all_video“)
public List select_all_video(HttpServletRequest hsr) {
List list = selectVideoService.selectAllVideo();
return list;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-24 21:53  playvideo\
     文件         849  2018-06-04 17:39  playvideo\.classpath
     文件         308  2018-08-20 22:30  playvideo\.mymetadata
     文件        1928  2018-03-26 14:07  playvideo\.project
     目录           0  2018-03-12 19:52  playvideo\.settings\
     文件         508  2018-03-12 19:31  playvideo\.settings\.jsdtscope
     文件          56  2018-03-12 19:31  playvideo\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件          57  2018-03-12 20:00  playvideo\.settings\org.eclipse.core.resources.prefs
     文件         430  2018-03-12 19:31  playvideo\.settings\org.eclipse.jdt.core.prefs
     文件          90  2018-03-12 19:31  playvideo\.settings\org.eclipse.m2e.core.prefs
     文件         580  2018-03-12 19:31  playvideo\.settings\org.eclipse.wst.common.component
     文件         252  2018-03-12 19:31  playvideo\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-03-12 19:31  playvideo\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-03-12 19:31  playvideo\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件        1274  2018-08-24 21:53  playvideo\playvideo.sql
     文件        2970  2018-06-04 16:11  playvideo\pom.xml
     目录           0  2018-03-12 19:31  playvideo\src\
     目录           0  2018-03-12 19:31  playvideo\src\main\
     目录           0  2018-03-12 19:49  playvideo\src\main\java\
     目录           0  2018-03-12 19:49  playvideo\src\main\java\com\
     目录           0  2018-03-12 20:51  playvideo\src\main\java\com\playvideo\
     目录           0  2018-03-12 20:27  playvideo\src\main\java\com\playvideo\controller\
     文件        1361  2018-03-27 14:50  playvideo\src\main\java\com\playvideo\controller\SelectVideoController.java
     目录           0  2018-03-12 20:37  playvideo\src\main\java\com\playvideo\entity\
     文件        1149  2018-03-29 19:10  playvideo\src\main\java\com\playvideo\entity\VideoList.java
     目录           0  2018-03-12 20:39  playvideo\src\main\java\com\playvideo\mapper\
     文件         316  2018-03-27 14:13  playvideo\src\main\java\com\playvideo\mapper\SelectVideoMapper.java
     目录           0  2018-03-13 11:22  playvideo\src\main\java\com\playvideo\service\
     目录           0  2018-03-13 11:22  playvideo\src\main\java\com\playvideo\service\impl\
     文件         927  2018-03-27 14:51  playvideo\src\main\java\com\playvideo\service\impl\SelectVideoImpl.java
     文件         254  2018-03-27 14:12  playvideo\src\main\java\com\playvideo\service\SelectVideoService.java
............此处省略327个文件信息

评论

共有 条评论

相关资源