Skip to content

Commit

Permalink
Fix OOM
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Dec 13, 2023
1 parent 9dc1f87 commit 18bd0d4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.slf4j.LoggerFactory;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
Expand Down Expand Up @@ -89,6 +90,7 @@ private static ObjectMapper createObjectMapper() {
.withSetterVisibility(JsonAutoDetect.Visibility.NONE)//
.withIsGetterVisibility(JsonAutoDetect.Visibility.NONE));
oom.enable(SerializationFeature.INDENT_OUTPUT);
oom.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
return oom;
}

Expand Down

0 comments on commit 18bd0d4

Please sign in to comment.