91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 179KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-04
  • 語(yǔ)言: Java
  • 標(biāo)簽: Java??

資源簡(jiǎn)介

這是一個(gè)基于j2ee實(shí)現(xiàn)的學(xué)生管理系統(tǒng),使用了sping+spingmvc+mabatis三個(gè)框架整合的JAVA工程,使用maven管理,內(nèi)含兩個(gè)角色,學(xué)生和教師,使用攔截器分別實(shí)現(xiàn)登錄驗(yàn)證,鑒權(quán)功能

資源截圖

代碼片段和文件信息

package?bnuz.lwj.controller;

import?java.util.ArrayList;
import?java.util.List;

import?javax.servlet.http.HttpSession;

import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?org.springframework.ui.Model;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.servlet.ModelAndView;

import?bnuz.lwj.po.Student;
import?bnuz.lwj.po.StudentCustom;
import?bnuz.lwj.service.StudentService;

@Controller
@RequestMapping(“/Student“)
public?class?StudentControllor?{
String?userType;
Integer?userid;
@Autowired
private?StudentService?studentService;
//?/Student/queryStudent.action
@RequestMapping(“/queryStudent“)
public?ModelAndView?queryStudent(HttpSession?session)throws?Exception{
List?studentList=new?ArrayList();
ModelAndView?modelAndView?=?new?ModelAndView();
userType=(String)session.getAttribute(“userType“);
userid=(Integer)session.getAttribute(“userid“);
Student?studentInf=studentService.findStudentById(userid);
studentList.add(studentInf);
//傳值到j(luò)sp
modelAndView.addobject(“studentList“?studentList);
modelAndView.addobject(“userType“userType);
modelAndView.addobject(“userid“userid);

modelAndView.setViewName(“student/studentlist“);
return?modelAndView;

}

//根據(jù)ID查詢學(xué)生信息,點(diǎn)擊修改時(shí)獲得
@RequestMapping(“/editStudent“)
//?/Student/editStudent.action
public?ModelAndView?editStudent(HttpSession?sessionStudentCustom?studentCustom)throws?Exception{
/* String?userTypeInteger?userid*/
studentCustom=studentService.findStudentById(studentCustom.getId());
ModelAndView?modelAndView?=?new?ModelAndView();
userType=(String)session.getAttribute(“userType“);
userid=(Integer)session.getAttribute(“userid“);

modelAndView.addobject(“Student“?studentCustom);
modelAndView.addobject(“userType“userType);
modelAndView.addobject(“userid“userid);
modelAndView.setViewName(“student/studentupdate“);
?
return?modelAndView;

}

//提交修改學(xué)生信息操作
//?/StudentCustom/editStudentSubmit.action
@RequestMapping(“/editStudentSubmit“)
public?String?editStudentSubmit(HttpSession?sessionModel?modelStudentCustom?studentCustom)throws?Exception{
//傳值到j(luò)sp
userType=(String)session.getAttribute(“userType“);
userid=(Integer)session.getAttribute(“userid“);

model.addAttribute(“userType“userType);
model.addAttribute(“userid“userid);
studentService.updateStudent(studentCustom);
return?“redirect:/Student/queryStudent.action“;?

}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-20?13:13??Studentmaven\
?????文件????????1194??2017-05-20?12:50??Studentmaven\.classpath
?????目錄???????????0??2017-05-20?15:07??Studentmaven\.git\
?????文件??????????87??2017-05-20?14:14??Studentmaven\.git\COMMIT_EDITMSG
?????文件?????????103??2017-05-20?15:02??Studentmaven\.git\FETCH_HEAD
?????文件??????????23??2017-05-20?12:51??Studentmaven\.git\HEAD
?????文件??????????41??2017-05-20?14:13??Studentmaven\.git\ORIG_HEAD
?????文件?????????308??2017-05-20?12:55??Studentmaven\.git\config
?????文件??????????73??2017-05-20?12:51??Studentmaven\.git\description
?????目錄???????????0??2017-05-20?12:51??Studentmaven\.git\hooks\
?????文件?????????478??2017-05-20?12:51??Studentmaven\.git\hooks\applypatch-msg.sample
?????文件?????????896??2017-05-20?12:51??Studentmaven\.git\hooks\commit-msg.sample
?????文件?????????189??2017-05-20?12:51??Studentmaven\.git\hooks\post-update.sample
?????文件?????????424??2017-05-20?12:51??Studentmaven\.git\hooks\pre-applypatch.sample
?????文件????????1642??2017-05-20?12:51??Studentmaven\.git\hooks\pre-commit.sample
?????文件????????1348??2017-05-20?12:51??Studentmaven\.git\hooks\pre-push.sample
?????文件????????4951??2017-05-20?12:51??Studentmaven\.git\hooks\pre-rebase.sample
?????文件?????????544??2017-05-20?12:51??Studentmaven\.git\hooks\pre-receive.sample
?????文件????????1239??2017-05-20?12:51??Studentmaven\.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2017-05-20?12:51??Studentmaven\.git\hooks\update.sample
?????文件???????10352??2017-05-20?14:14??Studentmaven\.git\index
?????目錄???????????0??2017-05-20?12:51??Studentmaven\.git\info\
?????文件?????????240??2017-05-20?12:51??Studentmaven\.git\info\exclude
?????目錄???????????0??2017-05-20?12:54??Studentmaven\.git\logs\
?????文件?????????774??2017-05-20?14:14??Studentmaven\.git\logs\HEAD
?????目錄???????????0??2017-05-20?12:55??Studentmaven\.git\logs\refs\
?????目錄???????????0??2017-05-20?12:54??Studentmaven\.git\logs\refs\heads\
?????文件?????????774??2017-05-20?14:14??Studentmaven\.git\logs\refs\heads\master
?????目錄???????????0??2017-05-20?12:55??Studentmaven\.git\logs\refs\remotes\
?????目錄???????????0??2017-05-20?12:55??Studentmaven\.git\logs\refs\remotes\origin\
?????文件?????????429??2017-05-20?14:14??Studentmaven\.git\logs\refs\remotes\origin\master
............此處省略364個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源