| | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | | } |