com.alibaba.fastjson2.support.spring.data.redis.GenericFastJsonRedisSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastjson2-extension-spring5 Show documentation
Show all versions of fastjson2-extension-spring5 Show documentation
Fastjson is a JSON processor (JSON parser + JSON generator) written in Java
The newest version!
package com.alibaba.fastjson2.support.spring.data.redis;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONB;
import com.alibaba.fastjson2.JSONReader;
import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.filter.ContextAutoTypeBeforeHandler;
import com.alibaba.fastjson2.support.config.FastJsonConfig;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.SerializationException;
/**
* Fastjson for Spring Data Redis Serializer(Generic implement).
*
* @author lihengming
* @author Victor.Zxy
* @see RedisSerializer
* @since 2.0.2
*/
public class GenericFastJsonRedisSerializer
implements RedisSerializer