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