LocalDateTime serialize 도중 발생하는 에러를 처리하기 위해 JacksonConfig 추가

This commit is contained in:
Klaus 2023-10-17 16:59:16 +09:00
parent 0f6c3075bc
commit bcdd161205
2 changed files with 15 additions and 1 deletions

View File

@ -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())
}
}

View File

@ -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(