From 0fc796b90d3f44b81ef30285edb897223df439f7 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 13 一月 2023 23:04:09 +0800 Subject: [PATCH] update 适配 javax.servlet 替换为 jakarta.servlet 更新所有代码 update 适配 ServletUtils 更换继承 JakartaServletUtil --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java index 5490837..12662ec 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java @@ -34,7 +34,7 @@ static { CACHES.add(new SysCache(CacheConstants.LOGIN_TOKEN_KEY, "鐢ㄦ埛淇℃伅")); - CACHES.add(new SysCache(CacheNames.ONLINE_TOKEN, "鍦ㄧ嚎鐢ㄦ埛")); + CACHES.add(new SysCache(CacheConstants.ONLINE_TOKEN_KEY, "鍦ㄧ嚎鐢ㄦ埛")); CACHES.add(new SysCache(CacheNames.SYS_CONFIG, "閰嶇疆淇℃伅")); CACHES.add(new SysCache(CacheNames.SYS_DICT, "鏁版嵁瀛楀吀")); CACHES.add(new SysCache(CacheConstants.CAPTCHA_CODE_KEY, "楠岃瘉鐮�")); @@ -51,9 +51,9 @@ @GetMapping() public R<Map<String, Object>> getInfo() throws Exception { RedisConnection connection = connectionFactory.getConnection(); - Properties info = connection.info(); - Properties commandStats = connection.info("commandstats"); - Long dbSize = connection.dbSize(); + Properties info = connection.commands().info(); + Properties commandStats = connection.commands().info("commandstats"); + Long dbSize = connection.commands().dbSize(); Map<String, Object> result = new HashMap<>(3); result.put("info", info); -- Gitblit v1.9.3