Browse Source

优化yaml导出测试

dev-lhz
chenzhihang 1 year ago
parent
commit
a9dc76c22b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/YamlUtils.java

+ 2
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/YamlUtils.java View File

@@ -42,6 +42,8 @@ public class YamlUtils {
// 创建Yaml实例 // 创建Yaml实例
Yaml yaml = new Yaml(representer, options); Yaml yaml = new Yaml(representer, options);


String dump = yaml.dump(data);

// Yaml yaml = new Yaml(options); // Yaml yaml = new Yaml(options);


File directory = new File(path); File directory = new File(path);


Loading…
Cancel
Save