Why is EhCacheProvider deprecated?

后端 未结 4 445
长情又很酷
长情又很酷 2020-12-23 15:18

I am configuring my hibernate project to use a 2nd-level cache provider, so that I can take advantage of query caching.

I added a dependency to ehcache:



        
4条回答
  •  北海茫月
    2020-12-23 15:38

    if you wish to use Hibernate 4.0.0.Final. for the value of hibernate.cache.region.factory_class property use:

    • org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory instead of net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory and
    • org.hibernate.cache.ehcache.EhCacheRegionFactory instead of net.sf.ehcache.hibernate.EhCacheRegionFactory

    Otherwise you will end up with some internal ClassNotFound exceptions

提交回复
热议问题