|
|
|
@ -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); |
|
|
|
|