diff options
author | Vitaly Takmazov | 2017-09-22 17:20:24 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-09-22 17:29:35 +0300 |
commit | c4c26f3d61dd790dbb2ca9965eb0cd134c59e29c (patch) | |
tree | 114a0447698ce2df17fc419ae6335f60852701dc /juick-server-web | |
parent | 0761ac90a89cf826e100ec7cea660b38288fab9b (diff) |
web: add jackson deps
Diffstat (limited to 'juick-server-web')
-rw-r--r-- | juick-server-web/build.gradle | 1 | ||||
-rw-r--r-- | juick-server-web/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/juick-server-web/build.gradle b/juick-server-web/build.gradle index adfb2e11..2164508f 100644 --- a/juick-server-web/build.gradle +++ b/juick-server-web/build.gradle @@ -10,6 +10,7 @@ dependencies { compile "com.fasterxml.jackson.core:jackson-databind:${rootProject.jacksonVersion}" compile "com.fasterxml.jackson.core:jackson-annotations:${rootProject.jacksonVersion}" compile "com.fasterxml.jackson.datatype:jackson-datatype-jdk8:${rootProject.jacksonVersion}" + compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${rootProject.jacksonVersion}" providedCompile "ch.qos.logback:logback-classic:${rootProject.logbackVersion}" providedCompile "ch.qos.logback:logback-core:${rootProject.logbackVersion}" diff --git a/juick-server-web/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java b/juick-server-web/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java index c0bd8b14..b702a5f1 100644 --- a/juick-server-web/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java +++ b/juick-server-web/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java @@ -20,6 +20,7 @@ package com.juick.server.configuration; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.converter.HttpMessageConverter; @@ -57,6 +58,7 @@ public class BaseWebConfiguration extends WebMvcConfigurerAdapter { mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); mapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT); mapper.registerModule(new Jdk8Module()); + mapper.registerModule(new JavaTimeModule()); return mapper; } |