• 大小: 41.66M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: Java
  • 标签: 服务器  服务  旅游  

资源简介

SSM
 SSM框架——详细整合教程(Spring SpringMVC MyBatis)

资源截图

代码片段和文件信息

package com.javen.controller;

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

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 com.javen.model.Admin;
import com.javen.service.IAdminService;

@Controller
@RequestMapping(“/admin“)
// /user/**
public class AdminController {
@Resource
private IAdminService adminService;

@RequestMapping(value = “login“ method = RequestMethod.POST)
public String login(@Valid Admin adminModel modelHttpSession  session) {
if(admin==null){
model.addAttribute(“error“ “请填写用户名和密码“);

return “error“;
}
Admin admin2 = a

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-20 09:56  travelServer\
     文件        1129  2018-03-17 18:52  travelServer\.classpath
     目录           0  2018-03-17 18:35  travelServer\.git\
     文件         378  2015-08-30 18:59  travelServer\.gitattributes
     文件         583  2018-02-07 14:28  travelServer\.gitignore
     文件        1381  2018-03-17 15:09  travelServer\.project
     目录           0  2018-03-17 15:08  travelServer\.settings\
     文件         562  2015-08-30 18:59  travelServer\.settings\.jsdtscope
     文件          78  2018-02-03 18:50  travelServer\.settings\com.genuitec.eclipse.migration.prefs
     文件         944  2018-03-20 09:49  travelServer\.settings\org.eclipse.core.resources.prefs
     文件         723  2018-03-17 18:47  travelServer\.settings\org.eclipse.jdt.core.prefs
     文件          86  2015-08-30 18:59  travelServer\.settings\org.eclipse.m2e.core.prefs
     文件         677  2018-03-17 15:09  travelServer\.settings\org.eclipse.wst.common.component
     文件         305  2018-02-05 20:12  travelServer\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml
     文件         392  2018-02-05 20:27  travelServer\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2015-08-30 18:59  travelServer\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2015-08-30 18:59  travelServer\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          48  2015-08-30 18:59  travelServer\.settings\org.eclipse.wst.validation.prefs
     目录           0  2018-03-17 15:08  travelServer\logs\
     文件     1416006  2018-03-20 16:50  travelServer\logs\ssm.log
     文件        5908  2018-03-20 09:41  travelServer\pom.xml
     文件         133  2015-08-30 18:59  travelServer\README.md
     目录           0  2018-03-17 15:08  travelServer\src\
     目录           0  2018-03-17 15:08  travelServer\src\main\
     目录           0  2018-03-18 13:27  travelServer\src\main\java\
     目录           0  2018-03-17 15:08  travelServer\src\main\java\com\
     目录           0  2018-03-18 20:33  travelServer\src\main\java\com\javen\
     目录           0  2018-03-19 22:28  travelServer\src\main\java\com\javen\controller\
     文件        1598  2018-03-18 14:42  travelServer\src\main\java\com\javen\controller\AdminController.java
     文件        4123  2018-03-19 20:36  travelServer\src\main\java\com\javen\controller\AttractionController.java
     文件        1837  2018-03-19 22:07  travelServer\src\main\java\com\javen\controller\MessageController.java
............此处省略946个文件信息

评论

共有 条评论