hibernate 3.1使用(import org.hibernate.cfg.AnnotationConfiguration;)出错
2016-06-20 21:23
531 查看
hibernate 3.1使用(import org.hibernate.cfg.AnnotationConfiguration;)出错
如上图所示:org.hibernate.cfg.AnnotationConfiguration不能够被识别和添加。使用Annotation的方式进行配置,非XML方式。查找原因网上有说原因未添加hibernate3.jar包,但是在我的Hibernate3.1.3中包含了这个文件。
解决方法:添加hibernate-annotations.jar即可
相关文章推荐
- Eclipse添加xml文件提示及Hibernate配置学习
- hibernate初学之初解篇一
- 关于hibernate.cfg.xml头文件DTD的引入
- Hibernate配置总结
- hibernate的简单配置实例
- Hibernate第一个程序流程(2016-3-20)
- Hibernate基本示例
- 非主键字段外键Hibernate配置
- Hibernate环境搭建和配置
- hibernate_核心配置和映射配置
- Hibernate(一)
- 框架之Hibernate01
- 如何配置hibernate框架
- Hibernate配置01
- MyEclipse配置Hibernate
- 文献 | 2010-2016年被引用次数最多的深度学习论文(修订版)
- leetcode 357. Count Numbers with Unique Digits
- C++(一)
- Linux命令解析--ls
- 格式化TextView 的文本