From 5245dd8df9b443a307d9436a6fd10f296884773b Mon Sep 17 00:00:00 2001 From: seungryeol Date: Fri, 17 Nov 2023 13:21:18 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20config=20redis=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/farmususer/global/config/redis/RedisConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/modernfarmer/server/farmususer/global/config/redis/RedisConfig.java b/src/main/java/modernfarmer/server/farmususer/global/config/redis/RedisConfig.java index 721dceb..8e60cd9 100644 --- a/src/main/java/modernfarmer/server/farmususer/global/config/redis/RedisConfig.java +++ b/src/main/java/modernfarmer/server/farmususer/global/config/redis/RedisConfig.java @@ -24,8 +24,7 @@ public RedisConnectionFactory redisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration(); redisStandaloneConfiguration.setHostName(redisHost); redisStandaloneConfiguration.setPort(Integer.parseInt(redisPort)); - LettuceConnectionFactory lettuceConnectionFactory = new LettuceConnectionFactory(redisStandaloneConfiguration); - return lettuceConnectionFactory; + return new LettuceConnectionFactory(redisStandaloneConfiguration); } @Bean