alibaba / alibaba/fastjson2

[QUESTION] FastJsonHttpMessageConverter 是否不再支持自定义的序列化/反序列化功能

Open
#2,968 0 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

#### 问题描述:

在使用 FastJsonHttpMessageConverter 时,我需要对某些自定义类型应用不同的序列化和反序列化规则。然而,我发现 FastJsonConfig 并没有提供诸如 setWriterProvider 或 setModules 之类的功能来注册这些自定义规则。

我的问题是:是否有其他方式可以将自定义的序列化/反序列化规则全局注册到 FastJsonHttpMessageConverter 中?同时,我希望可以匹配特定类型,并为其适配自定义的序列化/反序列化逻辑。

Contributor guide

Open the contributing guide

Research direction

Start by reading FastJsonHttpMessageConverter and FastJsonConfig to determine how converter configuration and type-specific serialization are currently exposed. Done means establishing whether global custom serialization and deserialization rules are supported, and documenting or clearly defining the required configuration path.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
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.