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