From b9f0fe7afc7991635d71388125ccfc1307f27746 Mon Sep 17 00:00:00 2001 From: AriaLyy <511455842@qq.com> Date: Thu, 16 Mar 2017 18:01:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E6=9C=89?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4=E4=B8=8B=E8=BD=BD=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java b/Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java index be37e2dd..34843364 100644 --- a/Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java +++ b/Aria/src/main/java/com/arialyy/aria/util/CommonUtil.java @@ -300,7 +300,9 @@ public class CommonUtil { public static Properties loadConfig(File file) { Properties properties = new Properties(); FileInputStream fis = null; - + if (!file.exists()){ + createFile(file.getPath()); + } try { fis = new FileInputStream(file); properties.load(fis);