diff --git a/core/core-infra-redis/src/main/java/com/mm/coreinfraredis/config/RedisConfig.java b/core/core-infra-redis/src/main/java/com/mm/coreinfraredis/config/RedisConfig.java index 6e372e8..ee6425e 100644 --- a/core/core-infra-redis/src/main/java/com/mm/coreinfraredis/config/RedisConfig.java +++ b/core/core-infra-redis/src/main/java/com/mm/coreinfraredis/config/RedisConfig.java @@ -7,7 +7,6 @@ import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer; -import org.springframework.data.redis.serializer.RedisSerializer; import org.springframework.data.redis.serializer.StringRedisSerializer; @Configuration @@ -23,11 +22,6 @@ public RedisConnectionFactory redisConnectionFactory() { return new LettuceConnectionFactory(redisHost, redisPort); } - @Bean - public RedisSerializer springSessionDefaultRedisSerializer() { - return new GenericJackson2JsonRedisSerializer(); - } - @Bean public RedisTemplate redisTemplate(RedisConnectionFactory connectionFactory) { RedisTemplate redisTemplate = new RedisTemplate<>();