调试接口,发现java Long序列化有问题,百度解决方式如下:
1、引入: jackson-mapper-asl-1.9.2.jar 2、导入: import org.codehaus.jackson.map.annotate.JsonSerialize; import org.codehaus.jackson.map.ser.std.ToStringSerializer; 3、在Long类型上添加注解 @JsonSerialize(using= ToStringSerializer.class) private Long id; 转自:https://www.cnblogs.com/bjlhx/p/6748477.html