How to configure second level cache in Hibernate 4.1.5 SP1?

前端 未结 3 966
面向向阳花
面向向阳花 2021-01-02 21:28

I have read other threads on here about this subject but none of the solutions work for me.

I tried putting this in my hibernate.cfg.xml:



        
3条回答
  •  死守一世寂寞
    2021-01-02 22:11

    Add the following properties to the Hibernate properties:

    true
    org.hibernate.cache.EhCacheProvider
    hibernate-ehcache.xml
    true
    true
    true 
    

    You need hibernate-ehcache 4.1.1 jar or not ehcache jar.

    Please make a note of the cache provider class which has changed.

提交回复
热议问题