前端拿到的: 后端实际返回的: id是Long类型的,发生了精度丢失。 解决方法,在返回类型的实体上添加: @JsonSerialize( using = ToStringSerializer.class ) 如下: