資源簡介
基于SSM的基礎員工管理系統,實現了基本的增刪改查的以及登錄頁面、用戶權限的變更等等。
開發環境:idea+mysql5.7
瀏覽器的話多試下吧!Chrome不支持alert輸出,會卡死,建議使用360或其他瀏覽器
代碼片段和文件信息
package?com.day.ticket.test;
import?com.edu.stu.model.EmployeeObj;
import?com.edu.stu.model.Employee;
import?com.edu.stu.service.impl.EmployeeServiceImpl;
import?org.junit.Test;
import?org.junit.runner.RunWith;
import?org.springframework.beans.factory.BeanFactory;
import?org.springframework.test.context.ContextConfiguration;
import?org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import?javax.annotation.Resource;
import?java.util.List;
/**
?*?Created?by?Administrator?on?2018/1/18.
?*/
@ContextConfiguration(“classpath:applicationContext.xml“)
@RunWith(SpringJUnit4ClassRunner.class)
public?class?loginTest?{
????@Resource
????private?BeanFactory?beanFactory;
????@Test
????public?void?testTicket()?{
????????EmployeeServiceImpl?employeeServiceImpl?=?beanFactory.getBean(“employeeServiceImpl“?EmployeeServiceImpl.class);
//????????Employee?employee?=?new?Employee(2“李四““男“25“18787879898““2018-05-03““2018-06-03“);
//????????employeeServiceImpl.saveEmployee(employee);
//????????employeeServiceImpl.updateEmployee(employee);
//????????EmployeeObj?employeeObj?=?new?EmployeeObj();
//????????employeeObj.setName(“張三“);
//????????List?list?=?employeeServiceImpl.queryEmployee(employeeObj);
//????????for?(Employee?e:list){
//????????????System.out.println(e);
//????????}
????????employeeServiceImpl.deleteEmployee(2);
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-19?10:23??sql\
?????文件????????3102??2018-06-19?10:22??sql\student_db_employee.sql
?????文件????????2247??2018-06-19?10:22??sql\student_db_loginuser.sql
?????目錄???????????0??2018-06-19?10:46??student\
?????目錄???????????0??2018-06-19?10:45??student\.idea\
?????目錄???????????0??2018-06-19?10:45??student\.idea\artifacts\
?????文件?????????655??2018-06-17?12:37??student\.idea\artifacts\student_war_exploded.xm
?????目錄???????????0??2018-06-17?13:06??student\.idea\inspectionProfiles\
?????目錄???????????0??2018-06-19?10:45??student\.idea\libraries\
?????文件????????2877??2018-06-17?11:10??student\.idea\libraries\lib.xm
?????文件?????????258??2018-06-17?11:10??student\.idea\misc.xm
?????文件?????????254??2018-06-17?11:10??student\.idea\modules.xm
?????文件????????8792??2018-06-17?11:14??student\.idea\uiDesigner.xm
?????文件?????????296??2018-06-17?13:05??student\.idea\webContexts.xm
?????文件???????59685??2018-06-19?10:42??student\.idea\workspace.xm
?????目錄???????????0??2018-06-19?10:46??student\out\
?????目錄???????????0??2018-06-19?10:45??student\out\artifacts\
?????目錄???????????0??2018-06-19?10:45??student\out\artifacts\student_war_exploded\
?????目錄???????????0??2018-06-19?10:45??student\out\artifacts\student_war_exploded\images\
?????文件??????222565??2018-06-17?12:39??student\out\artifacts\student_war_exploded\images\addAdmin_body.png
?????文件??????515327??2018-06-17?12:39??student\out\artifacts\student_war_exploded\images\adminIndex_body.png
?????文件??????986897??2018-06-17?12:39??student\out\artifacts\student_war_exploded\images\index.png
?????文件??????494878??2018-06-17?12:39??student\out\artifacts\student_war_exploded\images\stu_body.png
?????文件????????4540??2018-06-19?10:40??student\out\artifacts\student_war_exploded\index.jsp
?????目錄???????????0??2018-06-19?10:45??student\out\artifacts\student_war_exploded\js\
?????目錄???????????0??2018-06-19?10:45??student\out\artifacts\student_war_exploded\js\date\
?????文件???????22544??2018-06-17?12:39??student\out\artifacts\student_war_exploded\js\date\calendar.js
?????目錄???????????0??2018-06-19?10:45??student\out\artifacts\student_war_exploded\js\date\lang\
?????文件?????????644??2018-06-17?12:39??student\out\artifacts\student_war_exploded\js\date\lang\en.js
?????文件????????1089??2018-06-17?12:39??student\out\artifacts\student_war_exploded\js\date\lang\zh-cn.js
?????文件????????1088??2018-06-17?12:39??student\out\artifacts\student_war_exploded\js\date\lang\zh-tw.js
............此處省略325個文件信息
評論
共有 條評論