看到一个方法
@Cacheable(modelId = SKU_CACHE)
@Previewable(cacheByCatalogMode = true)
Sku findBySkuId(Identifier<Sku> skuId, StoreCode associatedStoreCode,
Locale locale, boolean sellable);好像导入的是import org.springmodules.cache.annotations.Cacheable;
请问这2个标记都是干什么用的,应该怎么用?谢谢!
@Cacheable(modelId = SKU_CACHE)
@Previewable(cacheByCatalogMode = true)
Sku findBySkuId(Identifier<Sku> skuId, StoreCode associatedStoreCode,
Locale locale, boolean sellable);好像导入的是import org.springmodules.cache.annotations.Cacheable;
请问这2个标记都是干什么用的,应该怎么用?谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货