Browse Source

解决Point在jackson中无法赋值问题

yucheng 3 years ago
parent
commit
0ff43fe71e
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/main/java/com/persagy/proxy/adm/model/AdmPoint.java

+ 7 - 7
src/main/java/com/persagy/proxy/adm/model/AdmPoint.java

@@ -1,6 +1,6 @@
 package com.persagy.proxy.adm.model;
 
-import com.alibaba.fastjson.annotation.JSONField;
+import com.fasterxml.jackson.annotation.JsonProperty;
 import com.persagy.proxy.relation.model.BaseEntity;
 import lombok.Data;
 
@@ -13,14 +13,14 @@ import lombok.Data;
 public class AdmPoint extends BaseEntity {
 
     /** 坐标x */
-    @JSONField(name = "X")
-    private Double X;
+    @JsonProperty("X")
+    private Double x;
 
     /** 坐标y */
-    @JSONField(name = "Y")
-    private Double Y;
+    @JsonProperty("Y")
+    private Double y;
 
     /** 坐标z */
-    @JSONField(name = "Z")
-    private Double Z;
+    @JsonProperty("Z")
+    private Double z;
 }