From c4c26f3d61dd790dbb2ca9965eb0cd134c59e29c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 22 Sep 2017 17:20:24 +0300 Subject: web: add jackson deps --- .../main/java/com/juick/server/configuration/BaseWebConfiguration.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-server-web/src/main') 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; } -- cgit v1.2.3