资源简介

spring4.1.3+mybatis3.2.8+springmvc+mysql8.0.11的一个简单模板。基于Tomcat8.0,jdk1.8,maven下使用

资源截图

代码片段和文件信息

package ssm_controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import ssm_pojo.User;
import ssm_service.UserService;


@RequestMapping(“/user“)
@Controller
public class UserController {

@Autowired
private UserService userService;
   @RequestMapping(“/find“)
public ModelAndView findAllUsers(){

List user=userService.findAllUsers();
ModelAndView mv=new ModelAndView();
mv.addobject(“allUser“ user);
mv.setViewName(“index“);
return mv;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-11 11:18  ssm_demo2\
     文件        1654  2018-09-11 11:17  ssm_demo2\.classpath
     文件        1218  2018-09-10 19:31  ssm_demo2\.project
     目录           0  2018-09-11 11:18  ssm_demo2\.settings\
     文件         639  2018-09-10 13:28  ssm_demo2\.settings\.jsdtscope
     文件          83  2018-09-10 16:18  ssm_demo2\.settings\org.eclipse.core.resources.prefs
     文件         430  2018-09-10 13:28  ssm_demo2\.settings\org.eclipse.jdt.core.prefs
     文件          90  2018-09-10 13:28  ssm_demo2\.settings\org.eclipse.m2e.core.prefs
     文件         668  2018-09-10 18:43  ssm_demo2\.settings\org.eclipse.wst.common.component
     文件         321  2018-09-10 19:31  ssm_demo2\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml
     文件         346  2018-09-10 19:31  ssm_demo2\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-09-10 13:28  ssm_demo2\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-09-10 13:28  ssm_demo2\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          50  2018-09-10 13:28  ssm_demo2\.settings\org.eclipse.wst.validation.prefs
     文件        7413  2018-09-11 11:01  ssm_demo2\pom.xml
     文件         533  2018-09-11 11:17  ssm_demo2\README.md
     目录           0  2018-09-11 11:18  ssm_demo2\src\
     目录           0  2018-09-11 11:18  ssm_demo2\src\main\
     目录           0  2018-09-11 11:18  ssm_demo2\src\main\java\
     目录           0  2018-09-10 16:22  ssm_demo2\src\main\java\ssm_controller\
     文件         708  2018-09-11 10:53  ssm_demo2\src\main\java\ssm_controller\UserController.java
     目录           0  2018-09-11 11:18  ssm_demo2\src\main\java\ssm_mapper\
     文件         263  2018-09-11 09:29  ssm_demo2\src\main\java\ssm_mapper\UserMapper.java
     文件         313  2018-09-10 12:10  ssm_demo2\src\main\java\ssm_mapper\UserMapper.xml
     目录           0  2018-09-10 16:22  ssm_demo2\src\main\java\ssm_pojo\
     文件         472  2018-09-09 21:44  ssm_demo2\src\main\java\ssm_pojo\User.java
     目录           0  2018-09-10 16:22  ssm_demo2\src\main\java\ssm_service\
     文件         203  2018-09-11 10:27  ssm_demo2\src\main\java\ssm_service\UserService.java
     目录           0  2018-09-10 16:22  ssm_demo2\src\main\java\ssm_service_impl\
     文件         689  2018-09-11 10:27  ssm_demo2\src\main\java\ssm_service_impl\UserServiceImpl.java
     目录           0  2018-09-10 16:22  ssm_demo2\src\main\java\ssm_utils\
............此处省略47个文件信息

评论

共有 条评论