我正在嘗試在休眠中實作二級快取。在 hibernate.cfg.xml 檔案中,我正在撰寫以下行
<property name = "cache.region.factory_class"></property>
問題是我的 ide 沒有在推薦中顯示 cache.region.factory_class。這個屬性是廢棄的還是我做錯了什么?我的休眠版本是 5.6.3
uj5u.com熱心網友回復:
在 Hibernate.cfg.xml 中應該是 hibernate.cache.region.factory_class
因此,例如在使用 JCache 時:
<property name="hibernate.cache.region.factory_class">org.hibernate.cache.jcache.JCacheRegionFactory</property>
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/419236.html
標籤:
