diff --git a/cadio-core/build.gradle b/cadio-core/build.gradle index a2ff0d8d..7eab2415 100644 --- a/cadio-core/build.gradle +++ b/cadio-core/build.gradle @@ -11,6 +11,8 @@ dependencies { // implementation("com.datastax.oss:java-driver-query-builder:${datastaxJavaDriverVersion}") // implementation("com.datastax.oss:java-driver-mapper-runtime:${datastaxJavaDriverVersion}") + api("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.1") + // CommonsLang3 api("org.apache.commons:commons-lang3:3.13.0") api("com.google.guava:guava:33.0.0-jre") diff --git a/cadio-core/src/main/java/kr/hakdang/cadio/common/Jsons.java b/cadio-core/src/main/java/kr/hakdang/cadio/common/Jsons.java index 75ac1a0f..1c1b6bb0 100644 --- a/cadio-core/src/main/java/kr/hakdang/cadio/common/Jsons.java +++ b/cadio-core/src/main/java/kr/hakdang/cadio/common/Jsons.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.fasterxml.jackson.module.paramnames.ParameterNamesModule; import lombok.AccessLevel; import lombok.NoArgsConstructor; @@ -18,6 +19,6 @@ public class Jsons { .configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true) .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false) .setSerializationInclusion(JsonInclude.Include.NON_NULL) - .registerModules(new ParameterNamesModule(), new Jdk8Module()); + .registerModules(new ParameterNamesModule(), new Jdk8Module(), new JavaTimeModule()); }