diff --git a/src/main/java/com/moabam/global/config/EmbeddedRedisConfig.java b/src/main/java/com/moabam/global/config/EmbeddedRedisConfig.java index a823fd26..85e7f64a 100644 --- a/src/main/java/com/moabam/global/config/EmbeddedRedisConfig.java +++ b/src/main/java/com/moabam/global/config/EmbeddedRedisConfig.java @@ -9,6 +9,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; +import org.springframework.core.annotation.Order; import org.springframework.core.io.ClassPathResource; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; @@ -64,8 +65,9 @@ public RedisTemplate redisTemplate(RedisConnectionFactory redisC return redisTemplate; } + @Order(2) @Bean - public ObjectMapper objectMapper() { + public ObjectMapper objectRedisMapper() { ObjectMapper objectMapper = new ObjectMapper(); objectMapper.registerModules(new JavaTimeModule());