日期:2014-05-20  浏览次数:20634 次

struts2+spring+hibernate中的jar包问题
有个dao层的实现类,我使用了spring提供的HibernateDaoSupport但是它出错了为什么啊?

import java.util.List;

import javax.management.Query;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.isoftstone.forum.dao.IDao;

public class DaoImpl<T>extends HibernateDaoSupport implements IDao<T>{

public void create(T baseBean) {

}


这个是错误提示
Multiple markers at this line
- The type org.springframework.dao.support.DaoSupport cannot be 
resolved. It is indirectly referenced from required .class files
- The hierarchy of the type DaoImpl is inconsistent

------解决方案--------------------
IDao是否有和HibernateDaoSupport 有冲突了
------解决方案--------------------
spring自带的Hibernate还行,最好不用它自带的。