aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-18 10:38:41 +0300
committerGravatar Vitaly Takmazov2018-05-18 10:38:41 +0300
commit1f9ee1cb9d3c199ec6f1d87f814504295c60959b (patch)
tree60ff2bf39ccdaf5a111e5db589e50ebfb4eb216d /juick-common/src/main
parentb17bf6508ef2b00fbd1ad04725ab457e0cf93831 (diff)
ObjectMapper is autoconfigured by Spring Boot
Diffstat (limited to 'juick-common/src/main')
-rw-r--r--juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java10
1 files changed, 0 insertions, 10 deletions
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) {