将Hibernate从3.3.2.GA迁移到3.6.10.Final时遇到问题

时间:2015-05-26 21:57:36

标签: java spring hibernate maven migration

当我将3.3.2.ga替换为3.6.10.final时,我面临以下问题。我从POM中删除了hibernate注释。因为它被转移到了hibernate-core。

Cannot resolve reference to bean 'sessionFactory' while setting bean 
property 'sessionFactory'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/dao-config.xml]: Invocation of init method failed;
nested exception is java.lang.NoSuchFieldError: STRING

0 个答案:

没有答案