diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/configs/JacksonConfig.kt b/src/main/kotlin/kr/co/vividnext/sodalive/configs/JacksonConfig.kt new file mode 100644 index 0000000..4330c89 --- /dev/null +++ b/src/main/kotlin/kr/co/vividnext/sodalive/configs/JacksonConfig.kt @@ -0,0 +1,14 @@ +package kr.co.vividnext.sodalive.configs + +import com.fasterxml.jackson.databind.ObjectMapper +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule +import org.springframework.context.annotation.Bean +import org.springframework.context.annotation.Configuration + +@Configuration +class JacksonConfig { + @Bean + fun objectMapper(): ObjectMapper { + return ObjectMapper().registerModule(JavaTimeModule()) + } +} diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt index d1ab467..08ef606 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt @@ -446,7 +446,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) @Cacheable( value = ["weekLivedCache"], - key = "#isAdult" + '_' + "#offset" + '_' + "#limit", + key = "#startDate" + '_' + "#isAdult" + '_' + "#offset" + '_' + "#limit", cacheManager = "cacheManager" ) override fun getAudioContentRanking(