程序里老出现:The import org.springframework.orm cannot be resolved
然后这里都有错误:
public class AaaaDAO extends HibernateDaoSupport { =============这里的HibernateDaoSupport
private static final Log log = LogFactory.getLog(AaaaDAO.class);
// property constants
protected void initDao() {
// do nothing
}
public void save(Aaaa transientInstance) {
log.debug("saving Aaaa instance");
try {
getHibernateTemplate().save(transientInstance); =======这里getHibernateTemplate
log.debug("save successful");
} catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
我用的是hibernate3.jar这个包,错误的意思好像是org.springframework.orm 识别不了,怎么解决???
------解决方案--------------------
应该是用到了spring.jar而你没有引入
------解决方案--------------------
org.springframework
少spring jar包!