sword前端菜单列表出错,页面加载出错,精度缺失,最后两位为0

Sword 未结 3 6005
好人
好人 2019-07-02 19:48

image.png



image.png

3条回答
  •  gtfhao
    gtfhao (楼主)
    2023-09-19 11:30

    public ObjectMapper objectMapper(Jackson2ObjectMapperBuilder builder) {
       // 自定义大数字序列化
       builder.serializerByType(Long.TYPE, ToStringSerializer.instance);
       builder.serializerByType(Long.class, ToStringSerializer.instance);
       builder.serializerByType(BigInteger.class, ToStringSerializer.instance);
       builder.serializerByType(BigDecimal.class, ToStringSerializer.instance);


提交回复