|
@@ -11,14 +11,14 @@ import com.ruoyi.common.core.constant.Constants;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Redis使用FastJson序列化
|
|
* Redis使用FastJson序列化
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
* @author ruoyi
|
|
|
*/
|
|
*/
|
|
|
public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T>
|
|
public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T>
|
|
|
{
|
|
{
|
|
|
public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");
|
|
public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");
|
|
|
-
|
|
|
|
|
- static final Filter AUTO_TYPE_FILTER = JSONReader.autoTypeFilter(Constants.JSON_WHITELIST_STR.stream().toArray(String[]::new));
|
|
|
|
|
|
|
+ static final Filter AUTO_TYPE_FILTER = JSONReader.autoTypeFilter(Constants.JSON_WHITELIST_STR);
|
|
|
|
|
+// static final Filter AUTO_TYPE_FILTER = JSONReader.autoTypeFilter(Constants.JSON_WHITELIST_STR.stream().toArray(String[]::new));
|
|
|
|
|
|
|
|
private Class<T> clazz;
|
|
private Class<T> clazz;
|
|
|
|
|
|