feat: 修复无法登录

This commit is contained in:
2025-03-21 20:02:35 +08:00
parent 9b28f14c0b
commit 028c26eceb
@@ -2,6 +2,7 @@ package cn.odboy.config;
import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONFactory; import com.alibaba.fastjson2.JSONFactory;
import com.alibaba.fastjson2.JSONReader;
import com.alibaba.fastjson2.JSONWriter; import com.alibaba.fastjson2.JSONWriter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.MurmurHash3; import org.apache.commons.codec.digest.MurmurHash3;
@@ -171,8 +172,8 @@ public class RedisConfiguration extends CachingConfigurerSupport {
return null; return null;
} }
String str = new String(bytes, StandardCharsets.UTF_8); String str = new String(bytes, StandardCharsets.UTF_8);
return JSON.parseObject(str, clazz); // 支持AutoType
return JSON.parseObject(str, clazz, JSONReader.Feature.SupportAutoType);
} }
} }
} }