摘要:
要引入import org.hibernate.annotations.Cache;在类前面添加:@Cache(usage= CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)可选项有:read-onlyread-writenonstrict-read-writetransactional完整示例:package com.hlcg.main.bean;import org.hibernate.annotations.Cache;import org.hibernate.annotations.CacheConcurrencyStrategy;impor 阅读全文