资源简介
(SSM框架集成)spring+struts2+mybatis三大框架集成实现用户的增删改查入门操作案例!

代码片段和文件信息
package com.xushouwei.action;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.opensymphony.xwork2.ActionSupport;
import com.xushouwei.bean.User;
import com.xushouwei.service.UserService;
@Controller
@Scope(“prototype“)
public class UserAction extends ActionSupport{
@Autowired
private UserService userService;
private User user;
private List userList;
public String execute() throws Exception {
// TODO Auto-generated method stub
return null;
}
public String login()
{
if(user!=null)
{
User user2=userService.userLogin(user);
if(user2!=null)
{
return SUCCESS;
}
}
this.addFieldError(“user.username“ “用户名或密码错误!“);
return INPUT;
}
public String addUI()
{
return “addUser“;
}
public String updateUI()
{
System.out.println(“--------updateUI----------“);
user=userService.findUserById(user.getId());
return “updateUser“;
}
public String add()
{
userService.insertUser(user);
return SUCCESS;
}
public String delete()
{
userService.deleteUser(user.getId());
return SUCCESS;
}
public String update() {
userService.updateUser(user);
return SUCCESS;
}
public String selectAllUser()
{
userList = userService.selectAllUser();
return “userList“;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public List getUserList() {
return userList;
}
public void setUserList(List userList) {
this.userList = userList;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-07-15 16:09 rest\
文件 1093 2016-07-15 09:51 rest\.classpath
文件 1329 2016-07-15 14:37 rest\.project
目录 0 2016-07-15 16:07 rest\.settings\
文件 522 2016-07-15 09:51 rest\.settings\.jsdtscope
文件 364 2016-07-15 09:51 rest\.settings\org.eclipse.jdt.core.prefs
文件 471 2016-07-15 09:51 rest\.settings\org.eclipse.wst.common.component
文件 414 2016-07-15 09:51 rest\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 49 2016-07-15 09:51 rest\.settings\org.eclipse.wst.jsdt.ui.superType.container
文件 6 2016-07-15 09:51 rest\.settings\org.eclipse.wst.jsdt.ui.superType.name
文件 979 2016-07-15 16:08 rest\db_conn.sql
目录 0 2016-07-15 16:07 rest\src\
目录 0 2016-07-15 16:07 rest\src\com\
目录 0 2016-07-15 16:07 rest\src\com\xushouwei\
目录 0 2016-07-15 16:07 rest\src\com\xushouwei\action\
文件 1785 2016-07-15 15:55 rest\src\com\xushouwei\action\UserAction.java
目录 0 2016-07-15 16:07 rest\src\com\xushouwei\bean\
目录 0 2016-07-15 16:07 rest\src\com\xushouwei\bean\sqlmapper\
文件 1265 2016-07-15 11:17 rest\src\com\xushouwei\bean\sqlmapper\user.xm
文件 1745 2016-07-15 11:22 rest\src\com\xushouwei\bean\User.java
目录 0 2016-07-15 16:07 rest\src\com\xushouwei\dao\
文件 414 2016-07-15 13:13 rest\src\com\xushouwei\dao\UserDao.java
文件 1833 2016-07-15 14:49 rest\src\com\xushouwei\dao\UserDaoImp.java
目录 0 2016-07-15 16:07 rest\src\com\xushouwei\service\
文件 417 2016-07-15 13:14 rest\src\com\xushouwei\service\UserService.java
文件 1211 2016-07-15 14:03 rest\src\com\xushouwei\service\UserServiceImp.java
文件 219 2016-07-15 16:09 rest\src\jdbc.properties
文件 371 2016-07-15 15:15 rest\src\mybatis.xm
文件 2908 2016-07-15 15:00 rest\src\spring.xm
文件 1153 2016-07-15 15:52 rest\src\struts.xm
目录 0 2016-07-15 16:07 rest\WebRoot\
............此处省略66个文件信息
相关资源
- SpringBoot+H2+mybatis-plus59130
- 基于J2EE物资出入库管理系统
- 基于SSM+CXF构建的RESTFul webservice
- 大数据中的云网络Cloud Networking for B
- Spring+MyBatis企业应用实战第一二版的源
- springboot+rabbitmq项目demo(亲测可正常运
- springboot整合RabbitMQ实现延时队列的两
- 关于Spring MVC项目maven中通过fileupload上
- Spring-Data-Redis2.0+Spring5
- 2017年-传智播客-张志君老师-SpringBoo
- springboot+mybatis整合实现注册登录
-
spring-fr
amework-5.0.2.RELEASE 源码包 - 基于web的图书馆运营系统
- springboot+webflux+mongodb+freemarker
- springboot整合activiti完整demo
- SpringBoot实战(第4版)清晰版.pdf.zip
- SpringBoot 中文文档
- springboot+jpa+thymeleaf实现增删改查分页
- es(elasticsearch)整合SpringCloudSpringBo
- Springboot日志开启SLF4J过程解析
- 原银在线信贷平台概要设计说明书v
- springcloud 微服务(全套视频)
- springCloud教学视频
- springboot全套教程2018年2.0版本
- 官网springboot项目
- Spring Boot中自定义注解结合AOP实现主备
- flowable整合Spring
- Spring Security架构以及源码详析
- SpringBoot+Mybatis+前后台隔离技术,完整
- Spring Boot技术栈博客企业前后端2018
评论
共有 条评论