This commit is contained in:
D 2023-12-13 14:16:16 +08:00
parent a2073eb2c7
commit fbccc92973

View File

@ -49,6 +49,7 @@ public class FastJson2JsonRedisSerializer<T> implements RedisSerializer<T>
} }
String str = new String(bytes, DEFAULT_CHARSET); String str = new String(bytes, DEFAULT_CHARSET);
// TODO 自动类型官方说不安全所以弃用了代替方案是autoTypeFilter
return JSON.parseObject(str, clazz, JSONReader.Feature.SupportAutoType); return JSON.parseObject(str, clazz, JSONReader.Feature.SupportAutoType);
// return JSON.parseObject(str, clazz, autoTypeFilter); // return JSON.parseObject(str, clazz, autoTypeFilter);
} }