• 大小: 11.8MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-22
  • 语言: 数据库
  • 标签: ssm  

资源简介

ssm完整项目,包括mysql数据库,可以直接用的。

资源截图

代码片段和文件信息

package ssm.controller;

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

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import ssm.po.User;
import unit.U;

@Controller
@RequestMapping(“/login“)
public class login {
//跳转到登录页面
@RequestMapping(“/first“)
public String reLogin() {
return “login“;
}
//登录页面的判断
@RequestMapping(“/login“)
public String login(HttpServletRequest requestModel modelHttpSession session) {
String name = request.getParameter(“name“);
String password = request.getParameter(“password“);
User user = new User();
if(name.equals(“ssm“) && password.equals(“123“)) {
user.setId(U.getUUID());
user.setUsername(name);
user.setPassword(password);
session.setAttribute(“USER“ user);
return “redirect:tofirst“;
}
model.addAttribute(“b“ false);
return “login“;
}
//跳转到首页
@RequestMapping(“/tofirst“)
public String toFirst() {
return “firstPage“;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1320  2018-12-26 08:42  SSM项目\member.sql

     文件       3575  2018-12-29 10:32  SSM项目\SSMProject\.classpath

     文件        910  2018-12-29 10:32  SSM项目\SSMProject\.project

     文件        612  2018-12-29 10:32  SSM项目\SSMProject\.settings\.jsdtscope

     文件        238  2018-12-29 10:32  SSM项目\SSMProject\.settings\org.eclipse.core.resources.prefs

     文件        364  2018-12-29 10:32  SSM项目\SSMProject\.settings\org.eclipse.jdt.core.prefs

     文件        544  2018-12-29 10:32  SSM项目\SSMProject\.settings\org.eclipse.wst.common.component

     文件        261  2018-12-29 10:32  SSM项目\SSMProject\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2018-12-29 10:32  SSM项目\SSMProject\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2018-12-29 10:32  SSM项目\SSMProject\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2783  2018-12-29 10:32  SSM项目\SSMProject\build\classes\applicationContext.xml

     文件        286  2018-12-29 10:32  SSM项目\SSMProject\build\classes\db.properties

     文件        314  2018-12-29 10:32  SSM项目\SSMProject\build\classes\mybatis-config.xml

     文件       1669  2018-12-29 10:32  SSM项目\SSMProject\build\classes\springmvc-config.xml

     文件       2015  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\controller\login.class

     文件       4818  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\controller\MemberController.class

     文件       1176  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\controller\reController.class

     文件        459  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\dao\MemberDao.class

     文件       1339  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\dao\MemberDao.xml

     文件       2417  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\interceptor\LoginInterceptor.class

     文件       1992  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\po\Member.class

     文件        883  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\po\User.class

     文件       1442  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\service\impl\MemberServiceImpl.class

     文件        471  2018-12-29 10:32  SSM项目\SSMProject\build\classes\ssm\service\MemberService.class

     文件        783  2018-12-29 10:32  SSM项目\SSMProject\build\classes\unit\U.class

     文件       2783  2018-12-29 10:32  SSM项目\SSMProject\config\applicationContext.xml

     文件        286  2018-12-29 10:32  SSM项目\SSMProject\config\db.properties

     文件        314  2018-12-29 10:32  SSM项目\SSMProject\config\mybatis-config.xml

     文件       1669  2018-12-29 10:32  SSM项目\SSMProject\config\springmvc-config.xml

     文件       1129  2018-12-29 10:32  SSM项目\SSMProject\src\ssm\controller\login.java

............此处省略86个文件信息

评论

共有 条评论