hibernate二级缓存设置

    xiaoxiao2021-03-25  66

    1.添加jar包 除搭建框架意外必须的包

    2.配置hibernate.cfg.xml

    cache.provider_class(开启二级缓存的类)cache.use_second_level_cache(是否使用二级缓存 选true) 二级缓存仅限于查询数据 •3.etc目录,拷贝ehcache.xml文件复制到src 配置ehcache.xml 属性

    转载请注明原文地址: https://ju.6miu.com/read-40149.html

    最新回复(0)