• 大小: 15.57MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-15
  • 语言: 数据库
  • 标签: java  ssm  MySQL  

资源简介

系统采用SSM技术,开发工具使用Eclipse/Myeclipse,数据库采用Mysql,服务器使用tomcat8。毕设或者期末系统,可以参考使用。

资源截图

代码片段和文件信息

package com.ling.controller;

import com.ling.pojo.Admin;
import com.ling.service.AdminService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

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

@RequestMapping(“/admin“)
@Controller
public class AdminController {

    @Resource
    private AdminService service;
    public void setService(AdminService service) {
        this.service = service;
    }

    @RequestMapping(value = “/login“)
    public String adminLogin() {
        return “/login“;
    }

    @RequestMapping(value = “/tologin“)
    public String adminLogin(@RequestParam String user @RequestParam String pwd
                             HttpServletRequest request HttpSession session) {
        System.out.println(“11111111“);
        Admin admin = service.adminLogin(user pwd);
        if (admin != null) {
            System.out.println(“22222222222“);
            session.setAttribute(“username“user);
            return “redirect:/book/allBook“;
        }else {
            request.setAttribute(“msg““用户名或密码不正确!“);
            return “login“;
        }
    }

    @RequestMapping(“quit“)
    public String quit(HttpServletRequest requestHttpSession session) {
        session.removeAttribute(“username“);
        session.setAttribute(“msg““退出成功,请重新登录!“);
        return “login“;
    }


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-08-03 14:04  parkingManage\
     目录           0  2020-08-03 14:04  parkingManage\.idea\
     文件        1130  2020-06-27 22:33  parkingManage\.idea\$PRODUCT_WORKSPACE_FILE$
     文件         117  2020-06-27 22:33  parkingManage\.idea\.gitignore
     目录           0  2020-08-03 14:04  parkingManage\.idea\artifacts\
     文件         302  2020-06-27 22:33  parkingManage\.idea\artifacts\parkingManageSystem.xml
     文件        3164  2020-06-27 22:33  parkingManage\.idea\artifacts\ssmbuild02_war_exploded.xml
     文件         594  2020-06-27 22:33  parkingManage\.idea\compiler.xml
     文件         878  2020-06-27 22:33  parkingManage\.idea\dataSources.xml
     文件         200  2020-06-27 22:33  parkingManage\.idea\encodings.xml
     文件         513  2020-06-27 22:33  parkingManage\.idea\misc.xml
     文件        8792  2020-06-27 22:33  parkingManage\.idea\uiDesigner.xml
     文件         180  2020-06-27 22:33  parkingManage\.idea\vcs.xml
     目录           0  2020-08-03 14:04  parkingManage\out\
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\meta-INF\
     文件          84  2020-06-27 22:33  parkingManage\out\artifacts\ssmbuild02_war_exploded\meta-INF\MANIFEST.MF
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\pic\
     文件      133559  2020-06-27 22:33  parkingManage\out\artifacts\ssmbuild02_war_exploded\pic\car1.jpg
     文件      244788  2020-06-27 22:33  parkingManage\out\artifacts\ssmbuild02_war_exploded\pic\car3.png
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\
     文件         436  2020-06-27 22:33  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\applicationContext.xml
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\com\
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\com\ling\
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\com\ling\controller\
     文件        2342  2020-06-27 22:33  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\com\ling\controller\AdminController.class
     文件        3501  2020-06-27 22:33  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\com\ling\controller\BookController.class
     文件        1846  2020-06-27 22:33  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\com\ling\controller\LoginInterceptor.class
     目录           0  2020-08-03 14:04  parkingManage\out\artifacts\ssmbuild02_war_exploded\WEB-INF\classes\com\ling\dao\
............此处省略122个文件信息

评论

共有 条评论