From f270bbbfdcc4ec2ab31df2177ed06447f34aa8e7 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Wed, 13 May 2020 09:05:02 +0800 Subject: [PATCH] update --- src/main/java/com/yutou/controller/test.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/controller/test.java b/src/main/java/com/yutou/controller/test.java index 3fdafe5..11c6443 100644 --- a/src/main/java/com/yutou/controller/test.java +++ b/src/main/java/com/yutou/controller/test.java @@ -89,16 +89,17 @@ public class test { } else { Jedis jedis = RedisUtlis.getRedis(); Set keys = jedis.keys("*"); - String data = ""; + String data = "
"; for (String key : keys) { if (type.equals("del")) { jedis.del(key); }else { if (key.startsWith("ip_")) { - data += "ip=" + key.replace("ip_", "") + " num=" + jedis.get(key) + "\n"; + data += "ip=" + key.replace("ip_", "") + " num=" + jedis.get(key) + "
"; } } } + data+="
"; jedis.close(); return data; }