resourceSelectTotal 缓存失败的处理

This commit is contained in:
wangliwen 2022-12-14 15:44:27 +08:00
parent 6fb4457625
commit a495fff99d
2 changed files with 3 additions and 3 deletions

View File

@ -668,7 +668,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
}
@Override
@Cacheable(value = resourceSelectTotalKey, key = "'totle'")
@Cacheable(value = resourceSelectTotalKey, key = "#{'totol'}")
public Object selectTotal() {
HashMap<String, Object> resultMap = new HashMap<>();
List<Map> re = resourceDao.selectTypeCount(null);

View File

@ -116,7 +116,7 @@
eternal="false"
timeToIdleSeconds="15"
timeToLiveSeconds="60"
overflowToDisk="true"
diskPersistent="true"
overflowToDisk="false"
diskPersistent="false"
memoryStoreEvictionPolicy="LRU"/>
</ehcache>