admin用户增加清理系统功能业务字典缓存的功能

This commit is contained in:
zhangwei
2018-09-23 15:32:00 +08:00
parent 8fb9cd6934
commit 77e3e60a6e
2 changed files with 38 additions and 1 deletions

View File

@@ -101,6 +101,12 @@ public class DictController extends BaseController {
return dictService.getDictByIdWithRelation(id);
}
@ResponseBody
@RequestMapping(value = {"refreshCache"})
public String refreshCache(String cacheName){
//删除字典缓存
CacheUtils.remove(cacheName);
return "success";
}
}