From 2663e1748b90b6a14b3eab5b8a612818659383d8 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Mon, 11 Mar 2024 14:34:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4json=20=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mis-service/main/java/bc/mm/mis/core/bean/Country.java | 4 ++++ mis-web/pom.xml | 6 +----- pom.xml | 6 ++++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/mis-service/main/java/bc/mm/mis/core/bean/Country.java b/mis-service/main/java/bc/mm/mis/core/bean/Country.java index 1ad2af3..a29df10 100644 --- a/mis-service/main/java/bc/mm/mis/core/bean/Country.java +++ b/mis-service/main/java/bc/mm/mis/core/bean/Country.java @@ -1,5 +1,7 @@ package bc.mm.mis.core.bean; +import com.alibaba.fastjson.annotation.JSONField; + import javax.persistence.*; @Entity @@ -12,11 +14,13 @@ public class Country { private String name; @Column(name = "country_code") + @JSONField(name = "country_code") private String countryCode; private Integer order; @Column(name = "en_name") + @JSONField (name = "en_name") private String enName; public Integer getId() { diff --git a/mis-web/pom.xml b/mis-web/pom.xml index de6ff30..07d4d72 100644 --- a/mis-web/pom.xml +++ b/mis-web/pom.xml @@ -48,11 +48,7 @@ spring-boot-starter-test test - - com.alibaba - fastjson - 2.0.7 - + bc.mm mis-service diff --git a/pom.xml b/pom.xml index a9b8831..4c9a902 100644 --- a/pom.xml +++ b/pom.xml @@ -58,6 +58,12 @@ spring-boot-starter-test test + + + com.alibaba + fastjson + 2.0.7 +