核心提示:通过mvc的形式对ssh进行整合对ssh的整合所注意的几点:1,在web.xml中加入 contextConfigLocation classpath:applicationContext.xml...
通过mvc的形式对ssh进行整合
对ssh的整合所注意的几点:
1,在web.xml中加入
2,在Struts中加入contextConfigLocation classpath:applicationContext.xml org.springframework.web.context.ContextLoaderListener struts org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts /*

demo的下载



package com.shandian.dao;
import java.util.List;
import com.shandian.bean.Users;
public interface IUserInfoDao {
// 登录模块
Users login(Users users);
// 全查
List getAll();
// 添加
void add(Users users);
// 删除
void delete(int id);
// 通过ID获取当前的对象
Users getUsers(int id);
// 更新数据
void update(Users users);
}


