解决方法:
<prop key="hibernate.cache.provider_class">
org.hibernate.cache.EhCacheProvider
</prop>
<prop key="hibernate.cache.use_query_cache">true</prop>
<prop key="hibernate.cache.use_second_level_cache">
false
</prop>
ehcache.jar架包错误
本文介绍了如何通过配置Hibernate的缓存属性来解决缓存问题,包括使用EhCache作为缓存提供者,并设置了查询缓存及二级缓存的相关属性。
140

被折叠的 条评论
为什么被折叠?



