Skip to content

Commit

Permalink
chore : Redis 설정 코드 변경
Browse files Browse the repository at this point in the history
* set 함수를 통해 직접 host, password, port 설정하는 것으로 변경
  • Loading branch information
sk000801 committed Mar 11, 2024
1 parent 4a4929e commit 30de8d4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 30de8d4

Please sign in to comment.