当试图使用ehcache作为hibernate二级缓存时,出现以下异常: org.hibernate.cache.NoCacheRegionFactoryAvailableException:使用二级缓存该应用程序,但财产hibernate.cache.region.factory_class没有给出grails 3(spring-boot) - 如何配置hibernate二级缓存
我试图将其配置在application.yml:
spring:
jpa:
properties:
hibernate:
cache:
region:
factory_class: org.hibernate.cache.ehcache.EhCacheRegionFactory
和:
grails:
hibernate:
cache:
use_second_level_cache: true
provider_class: net.sf.ehcache.hibernate.EhCacheProvider
region:
factory_class: org.hibernate.cache.ehcache.EhCacheRegionFactory
但这些似乎都没有帮助。
似乎不工作,我创建的https://jira.grails .org/browse/GRAILS-12091 – houbie 2015-03-19 14:27:43
我有点困惑。我生成了一个3.0.1版的新应用程序,我在application.yml中看到: - grails> hibernate> cache> queries:false – rawi 2015-04-22 12:39:53