[QUESTION]
Open
question
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 请描述您的问题
*询问有关本项目的使用和其他方面的相关问题。*
JSON.register(String.class, new StringToJsonSerializer());
全局配置了无效,必须每个字段上配置:如下
@JSONField(serializeUsing = StringToJsonSerializer.class)
private String client;
springboot3.2 请问下大佬怎么全局配置String类型都按StringToJsonSerializer序列化呢
Contributor guide
Research direction
Start by reading the JSON.register(String.class, new StringToJsonSerializer()) example and the @JSONField(serializeUsing = StringToJsonSerializer.class) usage in the issue. Check the global serializer-registration behavior under Spring Boot 3.2 and determine whether String-wide serialization is supported; done means the supported configuration or limitation is clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100