问一个白痴问题。
有了Ehcache Annotations for Spring还需要配置org.hibernate.cache.EhCacheProvider吗?
问一个白痴问题。
有了Ehcache Annotations for Spring还需要配置org.hibernate.cache.EhCacheProvider吗?
不需要,直接配置:
[code="xml"]
[/code]
然后调用:
[code="java"]
@Cacheable(cacheName="metaColumnCache")
public List findBy(String proId) {
[/code]