could not instantiate RegionFactory [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBrid

来源:互联网 发布:js判断浏览器是否是ie 编辑:程序博客网 时间:2024/06/05 07:13

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 instantiateRegionFactory[org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge]


在配置hibernate缓存的时候出的错,我就把我这个缓存代码注释掉了。代码如下


[html] view plaincopy
  1. <prop key="hibernate.cache.use_second_level_cache">false</prop><!-- 二级缓存 -->  
  2. <prop key="hibernate.cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</prop>  
  3.   
  4. <!--   
  5. <prop key="hibernate.cache.provider_class">com.opensymphony.oscache.hibernate.OSCacheProvider  
  6.                 </prop>   
  7. --> 
0 0
原创粉丝点击