• 大小: 152KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-04
  • 语言: 其他
  • 标签: SpringMvc  Mybatis  Maven  

资源简介

SpringMvc+Spring+Mybatis+Maven整合示例源码。希望对你们有帮助

资源截图

代码片段和文件信息

package sy.controller;

import javax.servlet.http.HttpServletRequest;

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

import sy.model.User;
import sy.service.UserServiceI;

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

private UserServiceI userService;

public UserServiceI getUserService() {
return userService;
}

@Autowired
public void setUserService(UserServiceI userService) {
this.userService = userService;
}

@RequestMapping(“/{id}/showUser“)
public String showUser(@PathVariable String id HttpServletRequest request) {
User 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-07 15:47  SpringMvc+Spring+Mybatis+Maven整合示例源码\
     目录           0  2013-08-29 15:02  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\
     文件        1243  2012-12-21 14:14  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.classpath
     文件        1220  2012-12-21 14:11  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.project
     目录           0  2013-08-29 15:02  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\
     文件         575  2012-12-21 14:11  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\.jsdtscope
     文件          57  2012-12-21 14:12  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\org.eclipse.core.resources.prefs
     文件         430  2012-12-21 14:13  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\org.eclipse.jdt.core.prefs
     文件          90  2012-12-21 14:10  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\org.eclipse.m2e.core.prefs
     文件         758  2012-12-21 14:14  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\org.eclipse.wst.common.component
     文件         252  2012-12-21 14:13  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2012-12-21 14:11  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2012-12-21 14:11  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件     1587845  2012-12-22 13:17  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\mybatis.log
     文件        2459  2012-12-22 12:17  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\pom.xml
     目录           0  2013-05-07 15:47  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\
     目录           0  2013-05-07 15:47  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\
     目录           0  2013-05-07 15:47  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\
     目录           0  2013-05-07 15:47  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\
     目录           0  2013-08-29 15:02  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\controller\
     文件         901  2012-12-21 15:56  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\controller\UserController.java
     目录           0  2013-08-29 15:02  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\
     文件         374  2012-12-21 14:34  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\BugMapper.java
     文件         329  2012-12-21 14:34  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\MenuMapper.java
     文件         343  2012-12-21 14:34  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\OnlineMapper.java
     文件         357  2012-12-21 14:34  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\ResourceMapper.java
     文件         329  2012-12-21 14:34  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\RoleMapper.java
     文件         385  2012-12-21 14:34  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\RoleResourceMapper.java
     文件         414  2012-12-22 13:12  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\UserMapper.java
     文件         357  2012-12-21 14:34  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\dao\UserRoleMapper.java
     目录           0  2013-08-29 15:02  SpringMvc+Spring+Mybatis+Maven整合示例源码\testmybatis\src\main\java\sy\mapping\
............此处省略35个文件信息

评论

共有 条评论