java.lang.NoSuchMethodError:org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava / lang / Class;)Lorg / hibernate / cfg / Configuration;

时间:2016-03-20 07:00:54

标签: java spring hibernate spring-mvc jpa

Error creating bean with name 'sessionFactory' defined in class path resource [DaoContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;

以下是我的冬眠和春季罐子:

  
      
  1. hibernate-3.5.0-Final
  2.   
  3. 冬眠的注解-3.5.0-最终
  4.   
  5. 冬眠-的EntityManager-3.5.0-最终
  6.   
  7. spring version:4.1.6
  8.   
  9. spring-security version:4.0.0
  10.   

0 个答案:

没有答案