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