java新闻项目Springmvc框架结合使用Word格式文档下载.docx
- 文档编号:15315011
- 上传时间:2022-10-29
- 格式:DOCX
- 页数:15
- 大小:247.28KB
java新闻项目Springmvc框架结合使用Word格式文档下载.docx
《java新闻项目Springmvc框架结合使用Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《java新闻项目Springmvc框架结合使用Word格式文档下载.docx(15页珍藏版)》请在冰豆网上搜索。
String,Object>
map){
SqlSessionssession=MyBatisTemple.getSession().openSession();
NewsViewDaonewview=ssession.getMapper(NewsViewDao.class);
List<
NewsViewEntity>
newss=newview.findAll();
map.put("
newss"
newss);
return"
admin/footPrint"
;
}
/adminDoBidden"
privateStringadminDoBidden(intid,intstatus){
AdminDaoadmins=ssession.getMapper(AdminDao.class);
admins.forbidden(status,id);
mit();
admin/index"
/adminDoEdit"
privateStringadminDoEdit(AdminEntityadminentity){
AdminEntityadmin=newAdminEntity(adminentity.getUsername(),
adminentity.getUpass(),adminentity.getName(),
adminentity.getStatus());
admin.setId(adminentity.getId());
admins.updateAdmin(admin);
redirect:
AdminList"
/adminToEdit"
privateStringadminToEdit(intid,Map<
AdminEntityadmin=admins.findIOne(id);
admin"
admin);
admin/editAdmin"
/adminDoAdd"
privateStringadminDoAdd(AdminEntityadminentity){
admins.addAdmin(admin);
/adminToAdd"
privateStringadminToAdd(){
admin/addAdmin"
/AdminList"
privateStringAdminList(Map<
AdminDaoadmin=ssession.getMapper(AdminDao.class);
AdminEntity>
admins=admin.findAll();
admins"
admins);
admin/listAdmin"
/NewsDoEdit"
privateStringNewsDoEdit(intid,Stringtitle,Stringauthor,
intpageview,Stringcontent1,intstatus){
NewsEntitynews=newNewsEntity(title,author,newDate(),pageview,
content1,status);
news.setId(id);
NewsDaonewss=ssession.getMapper(NewsDao.class);
newss.updateNews(news);
NewsList"
/NewsToEdit"
privateStringNewsToEdit(intid,Map<
NewsEntitynews=newss.findIOne(id);
news"
news);
admin/editNews"
/NewsDoAdd"
privateStringNewsDoAdd(Stringtitle,Stringauthor,Stringcontent1){
NewsEntitynewdao=newNewsEntity(title,author,newDate(),0,
content1,0);
newss.addNews(newdao);
/NewsToadd"
privateStringNewsToadd(){
admin/addNews"
/NewsList"
privateStringNewsList(Map<
NewsDaonews=ssession.getMapper(NewsDao.class);
NewsEntity>
newss=news.findAll();
admin/listNews"
/index"
privateStringindex(Stringusername,Stringupass){
System.out.println(username+upass);
AdminEntityadmin=admins.login(username,upass,0);
if(admin!
=null){
//System.out.println("
login����"
);
//HttpSessionsession=request.getSession();
//session.setAttribute("
AdminLOGIN"
��ת"
//response.sendRedirect("
index.admin"
return"
}else{
login.jsp"
admin/login"
}
/login"
privateStringlogin(){
//System.out.println(username+upass);
//SqlSessionssession=MyBatisTemple.getSession().openSession();
//AdminDaoadmins=ssession.getMapper(AdminDao.class);
//AdminEntityadmin=admins.login(username,upass,0);
//if(admin!
//System.out
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- java 新闻 项目 Springmvc 框架 结合 使用
![提示](https://static.bdocx.com/images/bang_tan.gif)