Hibernate5.x的二级缓存与查询缓存 注解版

在Hibernate5.x里使用二级缓存和查询缓存的时候先倒入jar包在hibernate的lib里边能够找到html 而后再hibernate.cfg.xml配置文件里写缓存 <!-- 二级缓存 --> <property name="cache.use_second_level_cache">true</property> <!-- 这里使用的事EH缓存 --> <property name=
相关文章
相关标签/搜索