From 1f9ee1cb9d3c199ec6f1d87f814504295c60959b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 18 May 2018 10:38:41 +0300 Subject: ObjectMapper is autoconfigured by Spring Boot --- .../com/juick/server/configuration/BaseWebConfiguration.java | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'juick-common/src') diff --git a/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java b/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java index 9063e665..a80740e9 100644 --- a/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java +++ b/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java @@ -49,16 +49,6 @@ public class BaseWebConfiguration implements WebMvcConfigurer, SchedulingConfigu public ResourceUrlEncodingFilter resourceUrlEncodingFilter() { return new ResourceUrlEncodingFilter(); } - @Bean - public ObjectMapper jsonMapper() { - ObjectMapper mapper = new ObjectMapper(); - mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - mapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT); - mapper.registerModule(new Jdk8Module()); - mapper.registerModule(new JavaTimeModule()); - return mapper; - } @Override public void configureTasks(ScheduledTaskRegistrar taskRegistrar) { -- cgit v1.2.3