hibernate.cache.region.factory_class=net.sf.ehcache.hibernate.EhCacheRegionFactory
报
ClassNotFoundException: org.hibernate.cache.TimestampsRegion
hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.EhCacheRegionFactory
报
ClassNotFoundException: org.hibernate.cache.ehcache.EhCacheRegionFactory
后来找到原因,
net.sf.ehcache.hibernate.EhCacheRegionFactory 不支持hibernate4
hibernate4支持ehcache的话,需要引入
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>4.1.2.Final</version>
</dependency>
参考地址:http://forums.terracotta.org/forums/posts/list/6674.page
posted on 2012-06-27 16:36
leafcold 阅读(1327)
评论(0) 编辑 收藏