com.github.huxinghai1988.json.ObjectMapperFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sidekiq-client-plugin Show documentation
Show all versions of sidekiq-client-plugin Show documentation
sidekiq queue client support java language
package com.github.huxinghai1988.json;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
public final class ObjectMapperFactory {
private static final ObjectMapper mapper = new ObjectMapper();
static {
mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
}
/**
* @return a fully-configured ObjectMapper
*/
public static ObjectMapper get() {
return mapper;
}
private ObjectMapperFactory() {
// Utility class
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy