The type org.springframework.dao.support.DaoSupport cannot be resolved.的解决

在SSH2整合过程中,在导入HibernateDaoSupport后,eclipse会报错:

"The type org.springframework.dao.support.DaoSupport cannot be resolved. It is indirectly referenced from required .class files".

 

仔细检查了一下原因后发现,因为我导入的是spring-core-xxx.jar.这个包其实是不全的,缺乏对HibernateDaoSupport支持的包。所以应该将包spring-core-xxx.jar换成spring.jar即可

你可能感兴趣的:(DAO,eclipse,spring)