|
|
|
@@ -11,7 +11,6 @@ import org.yaml.snakeyaml.DumperOptions; |
|
|
|
import org.yaml.snakeyaml.Yaml; |
|
|
|
|
|
|
|
import java.io.*; |
|
|
|
import java.nio.charset.StandardCharsets; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
@@ -46,7 +45,9 @@ public class YamlUtils { |
|
|
|
|
|
|
|
String fullPath = path + "/" + fileName + ".yaml"; |
|
|
|
|
|
|
|
try (FileWriter writer = new FileWriter(fullPath, StandardCharsets.UTF_8)) { |
|
|
|
try (FileWriter writer = new FileWriter(fullPath)) { |
|
|
|
String dump = yaml.dump(data); |
|
|
|
System.out.println("--------------------------------------------------dump: " + dump); |
|
|
|
yaml.dump(data, writer); |
|
|
|
} catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
|