File tree Expand file tree Collapse file tree
src/main/java/com/appcenter/marketplace/global/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import com .fasterxml .jackson .databind .ObjectMapper ;
55import com .fasterxml .jackson .databind .jsontype .BasicPolymorphicTypeValidator ;
66import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
7+ import org .springframework .beans .factory .annotation .Value ;
78import org .springframework .boot .autoconfigure .cache .RedisCacheManagerBuilderCustomizer ;
89import org .springframework .cache .CacheManager ;
910import org .springframework .cache .annotation .EnableCaching ;
2425@ EnableCaching
2526public class RedisConfig {
2627
28+ @ Value ("${spring.redis.host}" )
29+ private String redisHost ;
30+
31+ @ Value ("${spring.redis.port}" )
32+ private int redisPort ;
33+
2734 @ Bean
2835 public RedisConnectionFactory redisConnectionFactory () {
29- return new LettuceConnectionFactory (); // Lettuce 사용
36+ return new LettuceConnectionFactory (redisHost , redisPort ); // Lettuce 사용
3037 }
3138
3239 @ Bean
You can’t perform that action at this time.
0 commit comments