diff --git a/src/main/src/org/bdware/server/CMDConf.java b/src/main/src/org/bdware/server/CMDConf.java index bd896c0..4ba8d7e 100644 --- a/src/main/src/org/bdware/server/CMDConf.java +++ b/src/main/src/org/bdware/server/CMDConf.java @@ -3,6 +3,7 @@ package org.bdware.server; import com.google.gson.Gson; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.bdware.sc.util.JsonUtil; import java.io.*; import java.lang.reflect.Field; @@ -101,7 +102,7 @@ public class CMDConf { try { this.overwrite = false; BufferedWriter bw = new BufferedWriter(new FileWriter(path)); - bw.write(new Gson().toJson(this)); + bw.write(JsonUtil.toPrettyJson(this)); bw.flush(); bw.close(); LOGGER.info("write new configure");