【发布时间】:2013-05-07 11:02:27
【问题描述】:
我正在使用 JPA+Hibernate 做一个 Spring Web 应用程序。我使用 Spring 3.2.2。
我希望将 Hibernate 从 3.6.1 升级到 4.2.1。
我正在使用 org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean 并且能够注入一个 lob 处理程序。
根据SO的一些帖子(例如Exception NoClassDefFoundError for CacheProvider),我需要将AnnotationSessionFactoryBean替换为
org.springframework.orm.hibernate4.LocalSessionFactoryBean
我做到了。现在网站启动失败,因为 LocalSessionFactoryBean 没有 lob 处理程序的属性。我查看了 Spring API,但无法弄清楚如何注入我的 lob 处理程序。
感谢您的帮助!
问候。
【问题讨论】:
-
值得一读this issue
-
nobeh,感谢您的意见!