resourceSelectTotal 缓存失败的处理
This commit is contained in:
parent
6fb4457625
commit
a495fff99d
|
@ -668,7 +668,7 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Cacheable(value = resourceSelectTotalKey, key = "'totle'")
|
@Cacheable(value = resourceSelectTotalKey, key = "#{'totol'}")
|
||||||
public Object selectTotal() {
|
public Object selectTotal() {
|
||||||
HashMap<String, Object> resultMap = new HashMap<>();
|
HashMap<String, Object> resultMap = new HashMap<>();
|
||||||
List<Map> re = resourceDao.selectTypeCount(null);
|
List<Map> re = resourceDao.selectTypeCount(null);
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
eternal="false"
|
eternal="false"
|
||||||
timeToIdleSeconds="15"
|
timeToIdleSeconds="15"
|
||||||
timeToLiveSeconds="60"
|
timeToLiveSeconds="60"
|
||||||
overflowToDisk="true"
|
overflowToDisk="false"
|
||||||
diskPersistent="true"
|
diskPersistent="false"
|
||||||
memoryStoreEvictionPolicy="LRU"/>
|
memoryStoreEvictionPolicy="LRU"/>
|
||||||
</ehcache>
|
</ehcache>
|
Loading…
Reference in New Issue