Skip to content

Commit 812c39e

Browse files
committed
GH-1148 Remove manual setting of ObjectMapper feature
Remove manual setting of ObjectMapper feature in favor of standard Spring Boot via property setting Resolves #1148
1 parent 05416db commit 812c39e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/config/ContextFunctionCatalogAutoConfiguration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import java.util.function.Supplier;
2525
import java.util.stream.Collectors;
2626

27-
import com.fasterxml.jackson.databind.DeserializationFeature;
2827
import com.fasterxml.jackson.databind.ObjectMapper;
2928
import com.fasterxml.jackson.databind.SerializationFeature;
3029
import com.google.gson.Gson;
@@ -222,7 +221,6 @@ private JsonMapper jackson(ApplicationContext context) {
222221
mapper = new ObjectMapper();
223222
}
224223
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
225-
mapper.configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
226224
return new JacksonMapper(mapper);
227225
}
228226
}

0 commit comments

Comments
 (0)