alibaba / alibaba/fastjson2

[QUESTION]自定义消息转换器fastjson1.x升级到2.x后不能用了

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

### Springboot 自定义消息转换器fastjson1.x升级到2.x后不能用了

以前使用fastjson1.x时WebMvcConfigurer 设置自定义消息转换器 configureMessageConverters,现在升级fastjson2.x后有些类找不到了,详见截屏:

```xml


com.alibaba.fastjson2
fastjson2
2.0.43


com.alibaba.fastjson2
fastjson2-extension
2.0.43


com.alibaba.fastjson2
fastjson2-extension-spring5
2.0.43


com.alibaba.fastjson2
fastjson2-extension-spring6
2.0.43

```

image

Contributor guide

Open the contributing guide

Research direction

Start with the dependency list in the issue and the WebMvcConfigurer configureMessageConverters entry point, then compare the Spring integration APIs available in fastjson 2.0.43 with those used by fastjson 1.x. Done means identifying a supported custom message-converter configuration or documenting that the requested classes are unavailable; no repository file or test is named.

Written by the indexing model from the issue text.

Assessment

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