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; }