xuhy
2026-04-17 b89159fac28f0ccb40656c20e46c5f74e3fda703
xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/config/AdcPushAsyncConfig.java
@@ -1,5 +1,8 @@
package com.xiaopeng.map.config;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
@@ -26,4 +29,12 @@
        executor.initialize();
        return executor;
    }
    @Bean
    public ObjectMapper om() {
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        objectMapper.registerModule(new JavaTimeModule());
        return objectMapper;
    }
}