Commit 7b08ed31 authored by linpeiqin's avatar linpeiqin

删除记录时同时美化文件输出

parent e9955bcd
......@@ -211,6 +211,7 @@ public class DatasetVersionController {
private void updateJsonFile(String filePath, String keyToRemove) throws IOException {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
File jsonFile = new File(filePath);
// 读取JSON文件
JsonNode rootNode = objectMapper.readTree(jsonFile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment