当前位置: 代码迷 >> Java相关 >> struts2+spring+hibernate中的jar包有关问题
  详细解决方案

struts2+spring+hibernate中的jar包有关问题

热度:3502   发布时间:2013-02-25 21:47:10.0
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还行,最好不用它自带的。
  相关解决方案