Skip to content

Commit

Permalink
Json JavaTimeModule 추가 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
akageun committed Jul 3, 2024
1 parent 0241b0d commit 8c15224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cadio-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 2 additions & 1 deletion cadio-core/src/main/java/kr/hakdang/cadio/common/Jsons.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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());

}

0 comments on commit 8c15224

Please sign in to comment.