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>

 

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2021-11-29
  • 2021-10-17
猜你喜欢
  • 2021-12-30
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案