From 65d62db93d28b76651189dd065a129f6d8afa0fe Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Fri, 27 Sep 2024 11:32:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96yaml=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ruoyi/platform/utils/YamlUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/YamlUtils.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/YamlUtils.java index 78d26e2c..cdf022c8 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/YamlUtils.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/YamlUtils.java @@ -72,9 +72,8 @@ public class YamlUtils { public static Map loadYamlFile(String filePath) { Yaml yaml = new Yaml(); try (InputStream inputStream = new FileInputStream(new File(filePath))) { - Object load1 = yaml.load(inputStream); -// Map load = (Map) yaml.load(inputStream); - return new HashMap(); + HashMap load = (HashMap) yaml.load(inputStream); + return load; } catch (IOException e) { e.printStackTrace(); return null;