Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long型主键精度丢失问题 #4139

Closed
zhangdaiscott opened this issue Oct 27, 2022 · 1 comment
Closed

Long型主键精度丢失问题 #4139

zhangdaiscott opened this issue Oct 27, 2022 · 1 comment

Comments

@zhangdaiscott
Copy link
Member

版本号:

v3.2.0

问题描述:

Long型主键数据转json后,精度丢失。

截图&代码:

最新WebMvcConfiguration已经没有以下配置,为什么要删除这段代码,是有问题吗

        SimpleModule simpleModule = new SimpleModule();
        simpleModule.addSerializer(Long.class, ToStringSerializer.instance);
        simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance);

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
@zhangdaiscott
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant