ruoyi/src/main/java/com/ruoyi/project/system/controller/SysConfigController.java
@@ -70,7 +70,6 @@ /** * 根据参数键名查询参数值 */ @PreAuthorize("@ss.hasPermi('system:config:query')") @GetMapping(value = "/configKey/{configKey}") public AjaxResult getConfigKey(@PathVariable String configKey) { @@ -119,4 +118,16 @@ { return toAjax(configService.deleteConfigByIds(configIds)); } /** * 清空缓存 */ @PreAuthorize("@ss.hasPermi('system:config:remove')") @Log(title = "参数管理", businessType = BusinessType.CLEAN) @DeleteMapping("/clearCache") public AjaxResult clearCache() { configService.clearCache(); return AjaxResult.success(); } }