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 识别不了,怎么解决???
然后这里都有错误:
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 识别不了,怎么解决???
...全文
相关推荐
导入工程的“The import android cannot be resolved”错误解决方法
导入工程的“The import android cannot be resolved”错误解决方法
解决The type org.springframework.dao.support.DaoSupport cannot be resolved.bao报错
解决The type org.springframework.dao.support.DaoSupport cannot be resolved.bao报错
estableRuntimeException cannot be resolved 解决
org.apache.commons.lang.exception.NestableRuntimeException cannot be resolved 解决 替换JAR包即可
spring开发中的jar包,json,annotation
The import org.springframework.web.bind.annotation cannot be resolved. json.jar spring.jar mail.jar log4j.jar
spring-tx.jar
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced异常缺少的包


