摘要: 在applicationContext.xml文件中添加以下代码:<prop key="hibernate.cache.use_second_level_cache">true</prop> <!--设置缓存机制为二级缓存 --><prop key="hibernate.cache.use_query_cache">true</prop> <!--启动查询缓存 --><prop key="hibernate.cache.provider_class"> 阅读全文
posted @ 2011-12-15 17:36 香飘飘2011 阅读(9360) 评论(0) 推荐(0) 编辑