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

  • 大小: 13.29MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-06-27
  • 語言: 數(shù)據(jù)庫
  • 標簽: ssh??

資源簡介

基于SSH和mysql的學生管理系統(tǒng),有sql數(shù)據(jù)庫文件。

資源截圖

代碼片段和文件信息

package?com.lk.action;

import?java.util.List;

import?javax.annotation.Resource;

import?org.springframework.context.ApplicationContext;
import?org.springframework.context.annotation.Scope;
import?org.springframework.context.support.ClassPathxmlApplicationContext;
import?org.springframework.stereotype.Component;

import?com.lk.model.Student;
import?com.lk.model.User;
import?com.lk.service.StudentManager;
import?com.lk.service.UserManager;
import?com.lk.vo.Info;
import?com.opensymphony.xwork2.ActionSupport;
import?com.opensymphony.xwork2.ModelDriven;

@Component(“student“)
@Scope(“prototype“)
public?class?StudentAction?extends?ActionSupport?implements?ModelDriven{

private?Info?info?=?new?Info();

private?StudentManager?studentManager;

private?List?students;

public?List?getStudents()?{
return?students;
}
public?void?setStudents(List?students)?{
this.students?=?students;
}
public?StudentManager?getStudentManager()?{
return?studentManager;
}
@Resource(name=“studentManager“)
public?void?setStudentManager(StudentManager?studentManager)?{
this.studentManager?=?studentManager;
}


public?Info?getInfo()?{
return?info;
}
public?void?setInfo(Info?info)?{
this.info?=?info;
}

/**
?*?增加學生信息
?*?@return
?*?@throws?Exception
?*/
public?String?add()?throws?Exception{
Student?stu?=?new?Student();
stu.setId(info.getId());
stu.setSid(info.getSid());
stu.setName(info.getName());
stu.setCollege(info.getCollege());
stu.setProfession(info.getProfession());
studentManager.add(stu);
return?“success“;
}

/**
?*?查詢學生信息
?*?@return
?*?@throws?Exception
?*/
public?String?list()?throws?Exception{
this.students?=?this.studentManager.getStudents();
return?“l(fā)ist“;
}
/**
?*?獲取需要刪除學生信息的學號
?*?@return
?*?@throws?Exception
?*/
public?String?numberlistfordelete()?throws?Exception{
this.students?=?this.studentManager.getStudents();
return?“numberlistfordelete“;
}
/**
?*?獲取需要修改學生信息的學號
?*?@return
?*?@throws?Exception
?*/
public?String?numberlistformodify()?throws?Exception{
this.students?=?this.studentManager.getStudents();
return?“numberlistformodify“;
}

/**
?*?刪除學生信息
?*?@return
?*?@throws?Exception
?*/
public?String?delete()?throws?Exception{
studentManager.delete(Integer.parseInt(info.getSelect()));
return?“delete“;
}

/**
?*?更新學生信息
?*?@return
?*?@throws?Exception
?*/
public?String?modify()?throws?Exception{
Student?stu?=?new??Student();
stu.setCollege(info.getCollege());
stu.setName(info.getName());
stu.setProfession(info.getProfession());
stu.setSid(info.getSid());
System.out.println(stu.getCollege()+?“?“?+stu.getProfession()?+?“?“+?stu.getName()+“?“+?stu.getSid());
studentManager.update(stu.getCollege()?stu.getProfession()?stu.getName()?stu.getSid());
return?“modify“;
}

public?object?getModel()?{
//?T

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-07-20?00:21??stuInfoSystem_SSH_4\
?????文件????????2950??2016-07-20?00:16??stuInfoSystem_SSH_4\.classpath
?????目錄???????????0??2016-07-20?00:27??stuInfoSystem_SSH_4\.myeclipse\
?????文件?????????331??2012-11-24?18:20??stuInfoSystem_SSH_4\.mymetadata
?????文件????????1762??2016-07-20?00:16??stuInfoSystem_SSH_4\.project
?????目錄???????????0??2016-07-20?00:16??stuInfoSystem_SSH_4\.settings\
?????文件?????????503??2016-07-20?00:16??stuInfoSystem_SSH_4\.settings\.jsdtscope
?????文件????????1040??2012-11-24?18:20??stuInfoSystem_SSH_4\.settings\com.genuitec.eclipse.j2eedt.core.prefs
?????文件?????????364??2016-07-20?00:16??stuInfoSystem_SSH_4\.settings\org.eclipse.jdt.core.prefs
?????文件?????????567??2016-07-20?00:17??stuInfoSystem_SSH_4\.settings\org.eclipse.wst.common.component
?????文件?????????252??2016-07-20?00:16??stuInfoSystem_SSH_4\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2016-07-20?00:16??stuInfoSystem_SSH_4\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2016-07-20?00:16??stuInfoSystem_SSH_4\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2016-07-20?00:26??stuInfoSystem_SSH_4\WebRoot\
?????目錄???????????0??2012-11-24?18:19??stuInfoSystem_SSH_4\WebRoot\meta-INF\
?????文件??????????39??2012-11-20?19:41??stuInfoSystem_SSH_4\WebRoot\meta-INF\MANIFEST.MF
?????目錄???????????0??2016-07-20?00:14??stuInfoSystem_SSH_4\WebRoot\WEB-INF\
?????目錄???????????0??2016-07-20?00:20??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\
?????文件????????2950??2016-07-20?00:20??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\beans.xml
?????目錄???????????0??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\
?????目錄???????????0??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\
?????目錄???????????0??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\action\
?????文件????????3655??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\action\StudentAction.class
?????文件?????????777??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\action\StudentActionTest.class
?????文件????????2181??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\action\UserAction.class
?????目錄???????????0??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\dao\
?????文件?????????367??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\dao\StudentDao.class
?????文件?????????286??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\dao\UserDao.class
?????目錄???????????0??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\dao\impl\
?????文件????????2908??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\dao\impl\StudentDaoImpl.class
?????文件????????2149??2016-07-20?00:17??stuInfoSystem_SSH_4\WebRoot\WEB-INF\classes\com\lk\dao\impl\UserDaoImpl.class
............此處省略96個文件信息

評論

共有 條評論