Why is EhCacheProvider deprecated?

后端 未结 4 444
长情又很酷
长情又很酷 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:48

    The EhCache docs say that from Hibernate 3.3 onward you should use:

    
        net.sf.ehcache.hibernate.EhCacheRegionFactory
    
    

    (or net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory)

提交回复
热议问题