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

資源簡介

簡單的javaweb實例項目--員工管理系統,采用SSH框架搭建,實現了對員工,部門的增,刪,改,查。以及簡單的登陸,注冊功能。 采用注解形式對代碼進行優化,通過掃描包進行了spring,hibernate的自動裝配。

資源截圖

代碼片段和文件信息

package?action;

import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.beans.factory.annotation.Qualifier;
import?org.springframework.context.annotation.Scope;
import?org.springframework.stereotype.Controller;

import?com.opensymphony.xwork2.ActionContext;
import?com.opensymphony.xwork2.ActionSupport;
import?com.opensymphony.xwork2.ModelDriven;

import?entity.Department;
import?entity.PageBean;
import?service.DepartmentService;

@Controller(value=“departmentAction“)
@Scope(“prototype“)
public?class?DepartmentAction?extends?ActionSupport?implements?ModelDriven{
//模型驅動需要使用的對象
private?Department?department?=?new?Department();
@Override
public?Department?getModel()?{
//?TODO?Auto-generated?method?stub
return?department;
}

@Autowired
private?DepartmentService?departmentService;

private?Integer?currPage?=?1;
public?Integer?getCurrPage()?{
return?currPage;
}

public?void?setCurrPage(Integer?currPage)?{
this.currPage?=?currPage;
}
//分頁查詢的方法
public?String?findAll()?{
PageBean?pageBean?=?departmentService.fingByPage(currPage);
//將pageBean存入到值棧中
ActionContext.getContext().getValueStack().push(pageBean);
return?“findAll“;
}

public?String?saveUI()?{
return?“saveUI“;
}

public?String?save()?{
departmentService.save(department);
return?“saveSuccess“;
}

public?String?edit()?{
department?=?departmentService.findById(department.getDid());
return?“editSuccess“;
}

public?String?update()?{
departmentService.update(department);
return?“updateSuccess“;
}

public?String?delete()?{
department?=?departmentService.findById(department.getDid());
departmentService.delete(department);
return?“deleteSuccess“;
}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????4470??2019-01-05?23:20??sshpro\.classpath
?????文件?????????906??2018-12-16?22:09??sshpro\.project
?????文件?????????567??2018-12-16?22:09??sshpro\.settings\.jsdtscope
?????文件?????????718??2019-01-05?22:35??sshpro\.settings\org.eclipse.jdt.core.prefs
?????文件?????????470??2018-12-16?22:09??sshpro\.settings\org.eclipse.wst.common.component
?????文件?????????305??2018-12-16?23:55??sshpro\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2018-12-16?22:09??sshpro\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2018-12-16?22:09??sshpro\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????????39??2018-12-16?22:09??sshpro\WebContent\meta-INF\MANIFEST.MF
?????文件??????443432??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\antlr-2.7.6.jar
?????文件????????1041??2018-12-16?23:13??sshpro\WebContent\WEB-INF\lib\applicationContext.xml
?????文件???????43578??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\asm-3.3.jar
?????文件???????38275??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\asm-commons-3.3.jar
?????文件???????21503??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\asm-tree-3.3.jar
?????文件??????617643??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar
?????文件????????4615??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\com.springsource.org.aopalliance-1.0.0.jar
?????文件???????61464??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\com.springsource.org.apache.commons.logging-1.1.1.jar
?????文件??????396713??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\com.springsource.org.apache.log4j-1.2.15.jar
?????文件?????1642154??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar
?????文件??????559366??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\commons-collections-3.1.jar
?????文件???????68622??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\commons-fileupload-1.3.jar
?????文件??????159509??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\commons-io-2.0.1.jar
?????文件??????315805??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\commons-lang3-3.1.jar
?????文件???????62050??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\commons-logging-1.1.3.jar
?????文件???????96221??2018-12-16?23:59??sshpro\WebContent\WEB-INF\lib\commons-pool-1.5.4.jar
?????文件??????313898??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\dom4j-1.6.1.jar
?????文件??????931168??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\freemarker-2.3.19.jar
?????文件??????102661??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar
?????文件?????4162825??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\hibernate3.jar
?????文件??????614203??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\javassist-3.11.0.GA.jar
?????文件??????633312??2018-12-16?22:11??sshpro\WebContent\WEB-INF\lib\javassist-3.12.0.GA.jar
............此處省略179個文件信息

評論

共有 條評論