This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.2 by this push:
     new 91462702f2 fix: jackson deserialization,not fail on unknown 
properties. (#13249)
91462702f2 is described below

commit 91462702f23c31570f27aac2ee88f3962ec0a330
Author: JYZ <[email protected]>
AuthorDate: Mon Oct 23 21:19:51 2023 -0500

    fix: jackson deserialization,not fail on unknown properties. (#13249)
    
    Co-authored-by: 贾彦昭 <[email protected]>
---
 .../src/main/java/org/apache/dubbo/common/json/impl/JacksonImpl.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/dubbo-common/src/main/java/org/apache/dubbo/common/json/impl/JacksonImpl.java 
b/dubbo-common/src/main/java/org/apache/dubbo/common/json/impl/JacksonImpl.java
index 6fbd398a01..b33003857d 100644
--- 
a/dubbo-common/src/main/java/org/apache/dubbo/common/json/impl/JacksonImpl.java
+++ 
b/dubbo-common/src/main/java/org/apache/dubbo/common/json/impl/JacksonImpl.java
@@ -18,6 +18,7 @@ package org.apache.dubbo.common.json.impl;
 
 
 import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.databind.DeserializationFeature;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.json.JsonMapper;
@@ -64,6 +65,7 @@ public class JacksonImpl extends AbstractJSONImpl {
                 if (jacksonCache == null || !(jacksonCache instanceof 
JsonMapper)) {
                     jacksonCache = JsonMapper.builder()
                         .configure(MapperFeature.PROPAGATE_TRANSIENT_MARKER, 
true)
+                        
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
                         .serializationInclusion(Include.NON_NULL)
                         .addModule(new JavaTimeModule())
                         .build();

Reply via email to