首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

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

2012-04-02 
The import org.springframework.orm cannot be resolved?这是怎么回事??程序里老出现:The import org.spr

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包!

热点排行