资源简介

Spring SpringMVC MyBatis整合 SSM整合 ssmDEMO健身房管理系统

资源截图

代码片段和文件信息

package com.cn.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cn.pojo.Admin;
import com.cn.pojo.Teach;
import com.cn.pojo.User;
import com.cn.service.IUserService;

@Controller  
@RequestMapping(“/sys“)  
public class SysController {
@Resource  
    private IUserService userService;  
SimpleDateFormat df = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss“);
      
@ResponseBody
    @RequestMapping(“/loginAdmin“)  
    public String toIndex(Admin adminHttpSession session){  
admin=userService.adminLogin(admin.getName()admin.getPwd());
if(admin!=null){
session.setAttribute(“lastLoginTime“ admin.getLastlogintime());
session.setAttribute(“account“ “123“);
userService.setTime(df.format(new Date()));
return “true“;  
}else{
return “false“;  
        }
    }  
@RequestMapping(“/ForwardAdmin“)  
public String loginForward(HttpSession session){  
Listject>> countUserList=userService.countUser();
session.setAttribute(“countUser“countUserList);
Listject>> countTeachList=userService.countTeach();
session.setAttribute(“countTeach“countTeachList);
Listject>> countApparatusList=userService.countApparatus();
session.setAttribute(“countApparatus“countApparatusList);
return “sys/main“;  
}  
@RequestMapping(“/userTable“)  
public String userTable(HttpSession session){  
Listject>> findUserList=userService.findUser();
session.setAttribute(“findUserList“findUserList);
return “sys/userTable“;  
}  
@RequestMapping(“/teachTable“)  
public String teachTable(HttpSession session){  
Listject>> findUserList=userService.teachTable();
session.setAttribute(“findTeachList“findUserList);
return “sys/teachTable“;  
}  
@RequestMapping(“/apparatusTable“)  
public String apparatusTable(HttpSession session){  
Listject>> findUserList=userService.apparatusTable();
session.setAttribute(“findApparatusList“findUserList);
return “sys/apparatusTable“;  
}  
    @RequestMapping(“/exit“)  
    public String exit(HttpSession session){  
     session.invalidate();
     return “login“;
    } 
    @ResponseBody
    @RequestMapping(“/getSex“)  
    public List getSex(){  
     List list=userService.getSex();
     return list;  
    }   
    @ResponseBody
    @RequestMapping(“/delUser“)  
    public String delUser(Integer id){  
     userService.delUser(id);
     return “true“;  
    }   
    @ResponseBody
    @RequestMapping(“

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         529  2017-07-13 16:51  Bodybuilding\.classpath
     目录           0  2017-07-13 16:51  Bodybuilding\.myeclipse\
     文件         309  2017-08-23 10:22  Bodybuilding\.mymetadata
     文件          66  2017-08-23 10:22  Bodybuilding\.myumldata
     文件        1747  2017-07-13 16:55  Bodybuilding\.project
     文件     9729917  2017-08-25 11:22  Bodybuilding\body.war
     目录           0  2017-08-23 15:39  Bodybuilding\src\
     目录           0  2017-08-23 14:32  Bodybuilding\src\com\
     目录           0  2017-08-23 15:39  Bodybuilding\src\com\cn\
     目录           0  2017-08-23 14:18  Bodybuilding\src\com\cn\controller\
     文件        5696  2017-08-25 15:03  Bodybuilding\src\com\cn\controller\SysController.java
     文件        2857  2017-08-25 14:57  Bodybuilding\src\com\cn\controller\UserController.java
     目录           0  2017-08-23 10:19  Bodybuilding\src\com\cn\dao\
     文件        1546  2017-08-24 19:00  Bodybuilding\src\com\cn\dao\IUserDao.java
     目录           0  2017-08-23 15:39  Bodybuilding\src\com\cn\fillter\
     文件        1512  2017-08-25 15:37  Bodybuilding\src\com\cn\fillter\SecurityServlet.java
     目录           0  2017-08-23 17:57  Bodybuilding\src\com\cn\pojo\
     文件         570  2017-08-24 15:03  Bodybuilding\src\com\cn\pojo\Admin.java
     文件         301  2017-08-23 19:10  Bodybuilding\src\com\cn\pojo\Course.java
     文件         699  2017-08-23 19:10  Bodybuilding\src\com\cn\pojo\Teach.java
     文件        1707  2017-08-23 17:59  Bodybuilding\src\com\cn\pojo\User.java
     目录           0  2017-08-23 14:32  Bodybuilding\src\com\cn\service\
     目录           0  2017-08-23 10:19  Bodybuilding\src\com\cn\service\impl\
     文件        2911  2017-08-24 19:00  Bodybuilding\src\com\cn\service\impl\UserServiceImpl.java
     文件        1442  2017-08-24 18:59  Bodybuilding\src\com\cn\service\IUserService.java
     文件         657  2017-08-23 14:30  Bodybuilding\src\jdbcConfig.properties
     文件        1097  2017-08-24 14:24  Bodybuilding\src\log4j.properties
     文件        5654  2017-08-25 13:11  Bodybuilding\src\userMapper.xml
     目录           0  2017-08-24 20:06  Bodybuilding\WebRoot\
     目录           0  2017-08-25 16:36  Bodybuilding\WebRoot\assets\
     文件      186102  2017-08-25 16:36  Bodybuilding\WebRoot\assets\bodyBuilding.zip
............此处省略123个文件信息

评论

共有 条评论