您现在的位置:首页 >> 前端 >> 内容

ssh的整合

时间:2016/12/30 9:32:21 点击:

  核心提示:通过mvc的形式对ssh进行整合对ssh的整合所注意的几点:1,在web.xml中加入 contextConfigLocation classpath:applicationContext.xml...

通过mvc的形式对ssh进行整合

对ssh的整合所注意的几点:

1,在web.xml中加入


		contextConfigLocation
		classpath:applicationContext.xml
	

	
		org.springframework.web.context.ContextLoaderListener
	

	
		struts
		org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
	
	
		struts
		/*
	
2,在Struts中加入,不然会出错;

 

ssh的整合

demo的下载

ssh的整合

ssh的整合

ssh的整合

 

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);

}

Tags:SS SH H的 的整 
作者:网络 来源:ArryLuo123