Hibernate NoCacheRegionFactoryAvailableException

后端 未结 5 2082
自闭症患者
自闭症患者 2021-02-20 04:24

I\'m getting a bizarre Hibernate exception that I can\'t explain. It\'s telling me that I\'m using 2nd level cache, but no where in hibernate.cfg.xml do I specify a

5条回答
  •  借酒劲吻你
    2021-02-20 05:23

    Pau wrote on hibernate.cache.region.factory_class Required in hibernate.cfg.xml:

    The exception is quite self-explanatory. You have to set the hibernate.cache.region.factory_class property. For instance with ehcache would be adding the following line:

    net.sf.ehcache.hibernate.EhCacheRegionFactory
    

提交回复
热议问题