在使用hibernate3.6.2是我遇到了一个有趣的错误java.lang.NoSuchFieldError: INSTANCEat org.hibernate.type.BasicTypeRegistry.<init>(BasicTypeRegistry.java:94)at org.hibernate.type.TypeResolver.<init>(TypeResolver.java:59)at org.hibernate.cfg.Configuration.<init>(Configuration.java:249)at org.hibernate.cfg.Configuration.<init>(Configuration.java:300)

近在项目中使用SSH集成开发,由于hibernate使用3.0在映射配置文件中用<filter-def>老是报错,就升级hibernate到3.6版本了,但是报错了,错误如上。网上查了一下,说是hibernate3.5以后就集成annotation了,不需要引入hibernate-annotations.jar和hibernate-commons-annotations.jar,在项目中去掉这两个jar包,就可以了,标记一下

原因: hibernate3.6与 hibernate-annotations.jar和hibernate-commons-annotations.jar冲突

最新文章

  1. [译]Testing Node.js With Mocha and Chai
  2. Spring MVC实例(增删改查)
  3. 转载~vim配置文件
  4. POJ1947 - Rebuilding Roads(树形DP)
  5. 报错:Cannot insert explicit value for identity column in table &#39;t&#39; when identity_insert is set to OFF
  6. mvn archetyoe:generate -DarchetypeCatalog=internal
  7. Nginx基础教程PPT
  8. linux查看与开启ssh
  9. 【百度地图API】如何获取行政区域的边界?
  10. 使用putty上传文件到linux系统
  11. 从JVM字节码执行看重载和重写
  12. POJ 3673 Cow Multiplication
  13. BookNote: Refactoring - Improving the Design of Existing Code
  14. 方法总结:如何实现html页面自动刷新
  15. go-设计思想
  16. 洛谷P3321 序列统计
  17. LeetCode高频148错题记录
  18. 2019.04.09 电商24 订单模快 ORM
  19. tar 打包当前目录下文件但不包括该录
  20. 26、xcode8.0 解决没有iPhone4模拟器问题

热门文章

  1. QT5新手上路(2)发布exe文件
  2. bzoj1015:[JSOI2008]星球大战starwar
  3. NSDate与 NSString 、long long类型的相互转化
  4. Poj/OpenJudge 1000 A+b Problem C/C++/Java
  5. RX学习笔记:FreeCodeCamp的JavaScript基本算法挑战
  6. phantomjs 自动化测试
  7. 纯javascript 回到 顶部 实例
  8. Oracle配置
  9. yii2配置表前缀
  10. MVC之重定向