Skip to content

Commit b17795d

Browse files
committed
Revert "GH-1148 Remove manual setting of ObjectMapper feature"
This reverts commit 812c39e.
1 parent 6ffae93 commit b17795d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

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

27+
import com.fasterxml.jackson.databind.DeserializationFeature;
2728
import com.fasterxml.jackson.databind.ObjectMapper;
2829
import com.fasterxml.jackson.databind.SerializationFeature;
2930
import com.google.gson.Gson;
@@ -221,6 +222,7 @@ private JsonMapper jackson(ApplicationContext context) {
221222
mapper = new ObjectMapper();
222223
}
223224
mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
225+
mapper.configure(DeserializationFeature.FAIL_ON_TRAILING_TOKENS, true);
224226
return new JacksonMapper(mapper);
225227
}
226228
}

0 commit comments

Comments
 (0)