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

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

image.png



image.png

3条回答
  •  IceSun
    IceSun (楼主)
    2020-06-08 14:13

    @JsonSerialize(using = ToStringSerializer.class)

    无法解决所有问题

    需要

    PlanckConfiguration {
       ()
       Jackson2ObjectMapperBuilderCustomizer () {
          Jackson2ObjectMapperBuilderCustomizer customizer = Jackson2ObjectMapperBuilderCustomizer() {
             (Jackson2ObjectMapperBuilder jacksonObjectMapperBuilder) {
                jacksonObjectMapperBuilder.serializerByType(Long.ToStringSerializer.)
                   .serializerByType(Long.ToStringSerializer.)}
          }customizer}
    }

    支持对所有含Long型数据进行全局过滤, 包括HashMap, LinkedList ...

提交回复