SSM_jsp实现在线学习网站
2022/7/12 6:22:11
本文主要是介绍SSM_jsp实现在线学习网站,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
1.技术介绍
java+springmvc+spring+Mybatis+mysql+jsp
开发工具:eclipse或IDEA
2.主要功能说明:
学生
注册、登录、教学资料、教学视频、学习资料、在线答疑
老师
教学资料管理、学习资料管理、教学视频管理、答疑信息管理、在线学习管理
管理员
学生信息管理、教师信息管理、教学资料管理、学习资料管理、教学视频管理、答疑信息管理、在线学习管理
3.部分代码展示
```java
public class TshipinController
{
@Autowired
private TshipinService tshipinService;
@RequestMapping(value="/shipinAdd")
public String shipinAdd(Tshipin shipin,HttpServletRequest request) throws Exception
{
shipin.setShijian(new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
shipin.setDel("no");
shipin.setZt("通过");
tshipinService.insertTshipin(shipin);
request.setAttribute("message", "操作成功");
request.setAttribute("path", "shipinMana.action");
return "/common/succeed.jsp";
}
@RequestMapping(value="/shipinMana")
public String shipinMana(HttpServletRequest request) throws Exception
{
List shipinList=tshipinService.queryTshipinList(new Tshipin());
request.setAttribute("shipinList", shipinList);
return "/admin/shipin/shipinMana.jsp";
}
@RequestMapping(value="/shipinDel")
public String shipinDel(HttpServletRequest request) throws Exception
{
int id = Integer.parseInt(request.getParameter("shipinId"));
tshipinService.deleteTshipin(id);
request.setAttribute("message", "操作成功");
request.setAttribute("path", "shipinMana.action");
return "/common/succeed.jsp";
}
@RequestMapping(value="/shipinAll")
public String shipinAll(HttpServletRequest request) throws Exception
{
List shipinList=tshipinService.queryTshipinList(new Tshipin());
request.setAttribute("shipinList", shipinList);
return "/qiantai/shipin/shipinAll.jsp";
}
@RequestMapping(value="/shipinDetailQian")
public String shipinDetailQian(HttpServletRequest request) throws Exception
{
int id = Integer.parseInt(request.getParameter("shipinId"));
Tshipin shipin=tshipinService.queryTshipinById(id);
request.setAttribute("shipin", shipin);
return "/qiantai/shipin/shipinDetailQian.jsp";
}
@RequestMapping(value="/play")
public String play(HttpServletRequest request) throws Exception
{
int id = Integer.parseInt(request.getParameter("shipinId"));
Tshipin shipin=tshipinService.queryTshipinById(id);
request.setAttribute("shipin", shipin);
return "/qiantai/playvedio.jsp";
}
}
```
4.系统演示地址:
链接:https://pan.baidu.com/s/1u4piKHhw-TbJY5jqDTLelA
提取码:1qbk
这篇关于SSM_jsp实现在线学习网站的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-16Vue3资料:新手入门必读教程
- 2024-11-16Vue3资料:新手入门全面指南
- 2024-11-16Vue资料:新手入门完全指南
- 2024-11-16Vue项目实战:新手入门指南
- 2024-11-16React Hooks之useEffect案例详解
- 2024-11-16useRef案例详解:React中的useRef使用教程
- 2024-11-16React Hooks之useState案例详解
- 2024-11-16Vue入门指南:从零开始搭建第一个Vue项目
- 2024-11-16Vue3学习:新手入门教程与实践指南
- 2024-11-16Vue3学习:从入门到初级实战教程