alibaba / alibaba/fastjson2

[QUESTION] 序列化和反序列化SimpleGrantedAuthority有没有完整教程啊?

Open
#723 14 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

存序列化存Redis的时候报错:
org.springframework.data.redis.serializer.SerializationException: Could not deserialize: invoke constructor error, public org.springframework.security.core.authority.SimpleGrantedAuthority(java.lang.String)

SimpleGrantedAuthority是springsecurity的类,没有默认的无参构造器。但是又没有详细的mixin文档

Contributor guide

Open the contributing guide

Research direction

The report names Spring Security's SimpleGrantedAuthority and a Redis deserialization failure, but no repository file, test, or entry point. Start by locating existing mixin documentation and serialization examples for this class, then document the supported setup and a reproducible example; done means a newcomer can serialize and deserialize it without the reported constructor error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.