Spring整合org.hibernate.cfg.annotations.reflection.XMLContext$Default.getDelimitedIdentifier()

报的错误:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.annotations.reflection.XMLContext$Default.getDelimitedIdentifier()Ljava/lang/Boolean;

创建Web Project时导入的是hibernate3,后面在WEB-INF>>>lib下加入hibernate4的"hibernate-commons-annotations-4.0.2.Final.jar"和"hibernate-core-4.2.4.Final.jar",导致jar包的冲突问题。与getDelimitedIdentifier()方法无关

解决方法:删除冲突的jar包

你可能感兴趣的:(spring异常处理,hibernate,hibernate,spring,异常处理)