From a65ebdd044dce82a11f4d43ccd9cdf259d6ec149 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 20 Nov 2026 13:39:48 +0800
Subject: [PATCH] fix(gateApi): 忽略Gate配置反序列化未知属性

---
 src/main/java/com/xcong/excoin/modules/gateApi/GateConfigPersistenceService.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigPersistenceService.java b/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigPersistenceService.java
index 5d37c30..8974657 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigPersistenceService.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateConfigPersistenceService.java
@@ -1,6 +1,7 @@
 package com.xcong.excoin.modules.gateApi;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.DeserializationFeature;
 import com.fasterxml.jackson.databind.SerializationFeature;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
@@ -25,7 +26,9 @@
     private static final String CONFIG_PREFIX = "gate-config-";
     private static final String JSON_SUFFIX = ".json";
 
-    private final ObjectMapper mapper = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
+    private final ObjectMapper mapper = new ObjectMapper()
+            .enable(SerializationFeature.INDENT_OUTPUT)
+            .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
 
     @PostConstruct
     public void ensureConfigDir() {

--
Gitblit v1.9.1