不灭的焱

加密类型:SHA/AES/RSA下载Go
复合类型:切片(slice)、映射(map)、指针(pointer)、函数(function)、通道(channel)、接口(interface)、数组(array)、结构体(struct) Go类型+零值nil
引用类型:切片(slice)、映射(map)、指针(pointer)、函数(function)、通道(channel) Go引用

作者:AlbertWen  添加时间:2013-04-10 16:53:24  修改时间:2025-11-20 08:06:53  分类:08.Java基础  编辑
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 缓存的时候出的错,我就把我这个缓存代码注释掉了。代码如下:

<prop key="hibernate.cache.use_second_level_cache">false</prop><!-- 二级缓存 -->
<prop key="hibernate.cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</prop>

<!--
<prop key="hibernate.cache.provider_class">com.opensymphony.oscache.hibernate.OSCacheProvider</prop>
-->