当前位置: 代码迷 >> J2EE >> hibernate有关问题有高手能帮助上吗?(急)
  详细解决方案

hibernate有关问题有高手能帮助上吗?(急)

热度:87   发布时间:2016-04-22 00:23:28.0
hibernate问题有高手能帮助下吗?(急)
Java code
Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE    at 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:250)    at org.hibernate.cfg.Configuration.<init>(Configuration.java:302)    at dao.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:24)    at impl.UserImpl.getAll(UserImpl.java:16)    at text.UserList.main(UserList.java:20)


------解决方案--------------------
User 配置文件中和bean里面关于INSTANCE 属性不匹配
  相关解决方案