File tree 1 file changed +5
-2
lines changed
src/main/java/cmf/commitField/global/config
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,15 @@ public class RedisConfig {
22
22
@ Value ("${spring.redis.port}" )
23
23
public int port ;
24
24
25
+ @ Value ("${spring.redis.password}" )
26
+ public String password ;
27
+
25
28
@ Bean
26
29
public RedissonClient redissonClient () {
27
30
Config config = new Config ();
28
31
config .useSingleServer ()
29
32
.setAddress ("redis://127.0.0.1:6379" )
30
- .setPassword ("cmf55!!" ); // 비밀번호 추가
33
+ .setPassword (password ); // 비밀번호 추가
31
34
return Redisson .create (config );
32
35
}
33
36
@@ -45,7 +48,7 @@ public RedisConnectionFactory redisConnectionFactory() {
45
48
RedisStandaloneConfiguration configuration = new RedisStandaloneConfiguration ();
46
49
configuration .setHostName (host );
47
50
configuration .setPort (port );
48
- configuration .setPassword ("cmf55!!" ); // 비밀번호 설정
51
+ configuration .setPassword (password ); // 비밀번호 설정
49
52
return new LettuceConnectionFactory (configuration );
50
53
}
51
54
You can’t perform that action at this time.
0 commit comments