修复一个有可能导致下载失败的问题
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user