| | |
| | | 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; |
| | |
| | | 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() { |