摘要: 1、首先要打开二级缓存,在hibernate.cfg.xml中添加如下配置: true 2、Hibernate的二级缓存使用第三方的缓存工具来实现,所以我们需要指定Hibernate使用哪个 缓存工具。如下配置指定Hibernate使用EhCache缓存工具。 org.hibernate.cac... 阅读全文
posted @ 2013-02-01 09:35 Livingstone 阅读(404) 评论(0) 推荐(0) 编辑