File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/java/cmf/commitField/global/config Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,15 @@ public class RedisConfig {
2222 @ Value ("${spring.redis.port}" )
2323 public int port ;
2424
25+ @ Value ("${spring.redis.password}" )
26+ public String password ;
27+
2528 @ Bean
2629 public RedissonClient redissonClient () {
2730 Config config = new Config ();
2831 config .useSingleServer ()
2932 .setAddress ("redis://127.0.0.1:6379" )
30- .setPassword ("cmf55!!" ); // 비밀번호 추가
33+ .setPassword (password ); // 비밀번호 추가
3134 return Redisson .create (config );
3235 }
3336
@@ -45,7 +48,7 @@ public RedisConnectionFactory redisConnectionFactory() {
4548 RedisStandaloneConfiguration configuration = new RedisStandaloneConfiguration ();
4649 configuration .setHostName (host );
4750 configuration .setPort (port );
48- configuration .setPassword ("cmf55!!" ); // 비밀번호 설정
51+ configuration .setPassword (password ); // 비밀번호 설정
4952 return new LettuceConnectionFactory (configuration );
5053 }
5154
You can’t perform that action at this time.
0 commit comments