Skip to content

Commit 5a580fd

Browse files
authored
Enable automatic discovery of JSON modules in the default JsonMapper configuration. (#4233)
1 parent 24718f0 commit 5a580fd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libs/reactive-core/src/main/java/no/nav/testnav/libs/reactivecore/web/WebClientAutoConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class WebClientAutoConfiguration {
3131

3232
private static JsonMapper createDefaultJsonMapper() {
3333
return JsonMapper.builder()
34+
.findAndAddModules()
3435
.changeDefaultPropertyInclusion(incl -> incl.withValueInclusion(JsonInclude.Include.NON_NULL))
3536
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
3637
.configure(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES, false)

0 commit comments

Comments
 (0)