From f9ed3a89761253aeee073f531835864041f1d69a Mon Sep 17 00:00:00 2001 From: Aborn Jiang Date: Fri, 20 May 2022 17:10:14 +0800 Subject: [PATCH 1/2] fix weird prefixes keys when use RedisUtils.scan (#737) --- .../src/main/java/me/zhengjie/utils/RedisUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eladmin-common/src/main/java/me/zhengjie/utils/RedisUtils.java b/eladmin-common/src/main/java/me/zhengjie/utils/RedisUtils.java index eeeae0f5..b49b3ca5 100644 --- a/eladmin-common/src/main/java/me/zhengjie/utils/RedisUtils.java +++ b/eladmin-common/src/main/java/me/zhengjie/utils/RedisUtils.java @@ -23,6 +23,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.data.redis.connection.RedisConnection; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.core.*; +import org.springframework.data.redis.serializer.StringRedisSerializer; import org.springframework.stereotype.Component; import java.util.*; @@ -41,6 +42,9 @@ public class RedisUtils { public RedisUtils(RedisTemplate redisTemplate) { this.redisTemplate = redisTemplate; + this.redisTemplate.setHashKeySerializer(new StringRedisSerializer()); + this.redisTemplate.setKeySerializer(new StringRedisSerializer()); + this.redisTemplate.setStringSerializer(new StringRedisSerializer()); } /** From 3ed53836954687af229a000fdd4ccae01e16f2d9 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Tue, 24 May 2022 10:09:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fastjson=20=E7=89=88=E6=9C=AC=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E5=88=B0=201.2.83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0f82d1a1..1f64d700 100644 --- a/pom.xml +++ b/pom.xml @@ -34,7 +34,7 @@ 1.8 1.16 2.9.2 - 1.2.70 + 1.2.83 1.1.24 2.5.0 1.3.1.Final