diff --git a/designer-realize/src/main/java/com/fanruan/boot/ConfigHelper.java b/designer-realize/src/main/java/com/fanruan/boot/ConfigHelper.java index 40aebe54b6..a354a2f6b8 100644 --- a/designer-realize/src/main/java/com/fanruan/boot/ConfigHelper.java +++ b/designer-realize/src/main/java/com/fanruan/boot/ConfigHelper.java @@ -7,8 +7,9 @@ import com.fr.log.FineLoggerFactory; import com.fr.stable.StringUtils; +import java.io.BufferedReader; import java.io.File; -import java.io.InputStream; +import java.io.FileReader; import java.util.Properties; /** @@ -92,9 +93,7 @@ public class ConfigHelper { if (!ResourceIOUtils.exist(path)) { ResourceIOUtils.createFile(path); } - try (InputStream is = ResourceIOUtils.read(path)){ - properties.load(is); - } + properties.load(new BufferedReader(new FileReader(path))); } catch (Exception e) { FineLoggerFactory.getLogger().error(e, e.getMessage()); }