• 大小: 17.91MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-27
  • 语言: 数据库
  • 标签: java  SSH框架  整合  

资源简介

该文件夹包含源码、mysql数据库文件和一份整合框架的ppt,是对学生和院系数据表的基本操作,简单易上手,适合新手,代码健全且真实有效

资源截图

代码片段和文件信息

package action;

import java.util.List;


import dao.DepartmentDao;
import dao.StudentDao;
import po.Department;
import po.Student;

public class StudentAction{
private Student student;
private int id;
private List departs;
private List stuList;
private StudentDao studentDao;
private DepartmentDao departmentDao;
public Student getStudent() {
return student;
}
public void setStudent(Student student) {
this.student = student;
}
public List getDeparts() {
return departs;
}
public void setDeparts(List departs) {
this.departs = departs;
}
public List getStuList() {
return stuList;
}
public void setStuList(List stuList) {
this.stuList = stuList;
}
public StudentDao getStudentDao() {
return studentDao;
}
public void setStudentDao(StudentDao studentDao) {
this.studentDao = studentDao;
}
public DepartmentDao getDepartmentDao() {
return departmentDao;
}
public void setDepartmentDao(DepartmentDao departmentDao) {
this.departmentDao = departmentDao;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}

public String list(){
stuList = studentDao.getAllStudents();
return “success“;
}

public String add(){
studentDao.addStudent(student);
return “success“;
}

public String departlist(){
departs = departmentDao.getAll();
return “success“;
}

public String editPre(){
student = studentDao.getStudent(id);
departs = departmentDao.getAll();
return “success“;
}

public String edit(){
studentDao.updateStudent(student);
return “success“;
}

public String delete(){
studentDao.deleteStudent(id);
return “success“;
}


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-16 23:48  ssh整合框架简单实例\
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\
     文件         836  2018-10-14 17:10  ssh整合框架简单实例\SSH\.classpath
     文件        1036  2018-10-14 17:10  ssh整合框架简单实例\SSH\.project
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\.settings\
     文件         567  2018-10-14 17:10  ssh整合框架简单实例\SSH\.settings\.jsdtscope
     文件         364  2018-10-14 17:10  ssh整合框架简单实例\SSH\.settings\org.eclipse.jdt.core.prefs
     文件         461  2018-10-14 17:10  ssh整合框架简单实例\SSH\.settings\org.eclipse.wst.common.component
     文件         345  2018-10-14 17:10  ssh整合框架简单实例\SSH\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-10-14 17:10  ssh整合框架简单实例\SSH\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-10-14 17:10  ssh整合框架简单实例\SSH\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\build\
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\build\classes\
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\build\classes\action\
     文件        2793  2018-10-16 23:34  ssh整合框架简单实例\SSH\build\classes\action\StudentAction.class
     文件        1392  2018-10-14 23:14  ssh整合框架简单实例\SSH\build\classes\applicationContext.xml
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\build\classes\dao\
     文件         252  2018-10-16 19:57  ssh整合框架简单实例\SSH\build\classes\dao\DepartmentDao.class
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\build\classes\dao\impl\
     文件        1839  2018-10-16 19:57  ssh整合框架简单实例\SSH\build\classes\dao\impl\DepartmentDaoImpl.class
     文件        2765  2018-10-16 23:41  ssh整合框架简单实例\SSH\build\classes\dao\impl\StudentDaoImpl.class
     文件         339  2018-10-16 23:34  ssh整合框架简单实例\SSH\build\classes\dao\StudentDao.class
     文件        1393  2018-10-14 21:27  ssh整合框架简单实例\SSH\build\classes\hibernate.cfg.xml
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\build\classes\po\
     文件         874  2018-10-16 19:57  ssh整合框架简单实例\SSH\build\classes\po\Department.class
     文件         493  2018-10-14 20:45  ssh整合框架简单实例\SSH\build\classes\po\Department.hbm.xml
     文件        1470  2018-10-16 19:57  ssh整合框架简单实例\SSH\build\classes\po\Student.class
     文件         702  2018-10-14 20:39  ssh整合框架简单实例\SSH\build\classes\po\Student.hbm.xml
     文件        1644  2018-10-16 23:38  ssh整合框架简单实例\SSH\build\classes\struts.xml
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\src\
     目录           0  2018-10-16 23:45  ssh整合框架简单实例\SSH\src\action\
............此处省略74个文件信息

评论

共有 条评论