com.feingto.cloud.config.redis.support.Jackson2JsonRedisSerializer Maven / Gradle / Ivy
The newest version!
package com.feingto.cloud.config.redis.support;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
import com.feingto.cloud.config.redis.bean.BaseClass;
import com.feingto.cloud.kit.json.JSONObjectMapper;
import org.springframework.cache.support.NullValue;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.SerializationException;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;
import java.io.IOException;
/**
* Redis Jackson2 序列化/反序列化
*
* @author longfei
*/
public class Jackson2JsonRedisSerializer implements RedisSerializer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy