当前位置: 代码迷 >> J2EE >> The import org.springframework.orm cannot be resolved?这是咋回事?
  详细解决方案

The import org.springframework.orm cannot be resolved?这是咋回事?

热度:665   发布时间:2016-04-22 01:52:36.0
The import org.springframework.orm cannot be resolved?这是怎么回事??
程序里老出现: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包!
  相关解决方案