Solve the long type front-end loss of precision

	 import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
	 
	 @ApiModelProperty(value = "ID-修改操作需要填写,新增不用")
	 @JsonSerialize(using = ToStringSerializer.class)
	 private Long id;

Use @JsonSerialize (using = ToStringSerializer.class) can solve the problem of lost precision of the front end, is introduced as

Published 10 original articles · won praise 3 · Views 175

Guess you like

Origin blog.csdn.net/qq_40016813/article/details/103122918