diff --git a/server/spring/src/main/java/catchytape/spring/auth/config/RedisConfig.java b/server/spring/src/main/java/catchytape/spring/auth/config/RedisConfig.java index 53eea76..70e0296 100644 --- a/server/spring/src/main/java/catchytape/spring/auth/config/RedisConfig.java +++ b/server/spring/src/main/java/catchytape/spring/auth/config/RedisConfig.java @@ -23,8 +23,12 @@ public class RedisConfig { @Bean public RedisConnectionFactory redisConnectionFactory() { - RedisStandaloneConfiguration config = new RedisStandaloneConfiguration(host, port); - config.setPassword(password); + RedisStandaloneConfiguration config = new RedisStandaloneConfiguration(); + + config.setHostName(host); + config.setPort(port); + config.setPassword(password); + return new LettuceConnectionFactory(config); }