com.gitee.fufu669.config.redis.CustomGenericJackson2JsonRedisSerializer Maven / Gradle / Ivy
package com.gitee.fufu669.config.redis;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.SerializationException;
import org.springframework.util.Assert;
import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping;
/** @author wangfupeng */
public class CustomGenericJackson2JsonRedisSerializer implements RedisSerializer