From 46ea49c9452002f2c01a10fd9550339a8aaa7cd1 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期三, 18 六月 2025 14:19:15 +0800
Subject: [PATCH] 1、新了解到,FBox可接多台套水肥机、气象站、墒情站,相应修改协议(主要是主题部分); 2、编写《水肥机、气象站、墒情站协议》(未完)。

---
 pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/fastjson/FastJsonConfig.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/fastjson/FastJsonConfig.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/fastjson/FastJsonConfig.java
index 477f78a..e57c5dc 100644
--- a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/fastjson/FastJsonConfig.java
+++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/fastjson/FastJsonConfig.java
@@ -12,6 +12,9 @@
 import java.util.ArrayList;
 import java.util.List;
 
+/**
+ * 蹇呴』瀹炵幇WebMvcConfigurer鍚﹀垯涓嶅惎浣滅敤锛屽嵆Controller杞琷son鏃朵笉鐢╢astjson
+ */
 @Configuration
 public class FastJsonConfig implements WebMvcConfigurer {
     /**
@@ -29,12 +32,12 @@
                 JSONWriter.Feature.WriteMapNullValue,
                 //杈撳嚭null鐨刡oolean 涓� false
                 JSONWriter.Feature.WriteNullBooleanAsFalse,
-                //鎶奓ong鍨嬭緭鍑轰负String
+                //鎶奓ong鍨嬭緭鍑轰负String锛屽湪pojo鐨勫睘鎬т腑涓�ц缃�
                 //JSONWriter.Feature.WriteLongAsString,
                 //杈撳嚭null鐨刲ist 涓� []
                 JSONWriter.Feature.WriteNullListAsEmpty,
                 //杈撳嚭null鐨刵umber 涓� 0
-                JSONWriter.Feature.WriteNullNumberAsZero,
+                //JSONWriter.Feature.WriteNullNumberAsZero,
                 //杈撳嚭null瀛楃涓� 涓� ""
                 JSONWriter.Feature.WriteNullStringAsEmpty,
                 //瀵筸ap杩涜鎺掑簭

--
Gitblit v1.8.0