修复一个有可能导致下载失败的问题
This commit is contained in:
@ -300,7 +300,9 @@ public class CommonUtil {
|
|||||||
public static Properties loadConfig(File file) {
|
public static Properties loadConfig(File file) {
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
FileInputStream fis = null;
|
FileInputStream fis = null;
|
||||||
|
if (!file.exists()){
|
||||||
|
createFile(file.getPath());
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
fis = new FileInputStream(file);
|
fis = new FileInputStream(file);
|
||||||
properties.load(fis);
|
properties.load(fis);
|
||||||
|
Reference in New Issue
Block a user