could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]在hibernate3.3+spring2.5.6


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAO': Injection of resource methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]

解決方法

在配置hibernate緩存的時候出的錯,我就把我這個緩存代碼刪除掉了。代碼如下

 

<prop key="hibernate.cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</prop>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM